Hello sir/ma’am, why is test case 2 and 8 not passing in my code? Please tell what am i missing?? Sharing my code: https://ide.codingblocks.com/s/229421
String Window Hashing
line no 30 is not required you have to decrease sHash[s[start]] in both case
so after removing line 30
you code passing all testcase
and change char to int
char *sHash=new char256;
modified code
Okay, got it…Thank you sir!!!
1 Like