in your code of 1st approach word.substr(0,n-i) and wor.substr(i,n-i) will never be equal as they are of different length . then why we are checking it ?
@@SahillKhn He is using C++, in C++ we do via length. But in java i.e. you referring to, it is done via excluding indices. For java both words are: word.substring(i, n), word.substring(0, n-i)
bro when will rabinkarp video come..it helps a lot for my interview preparation kindly upload it ASAP and make 100 days placement vids more regularly!!!
Dream Fist bhai, lecture written hai, baas 100days 100k placements series ka part hai, toh usi ke video series me Day28 ka part hai, both single Hashing & Double Hashing❤️❤️🙏
you should have discussed the implementation of Z Algo too and the advantage of using Z algo over KMP here or vica versa
bahut pyaara explanation sir(bro).. maja aa gaya especially after watching your KMP lecture
18:48 word.substr(i,n-i) replace with word.substr(i,n) in java
great video...
Just Excellent explanation and understanding of concepts. Mark my words , going to be the best channel possible for coding. Bring it on man!
Thank you bro (sir) greetings from Mexico!
Best explanation possible!
in your code of 1st approach word.substr(0,n-i) and wor.substr(i,n-i) will never be equal as they are of different length . then why we are checking it ?
Bro, n-i is the length & you can see its same 🙃
@@ARYANMITTAL I think the condition should be word.substring(i,n) and not word.substring(i,n-i)
@@SahillKhn He is using C++, in C++ we do via length. But in java i.e. you referring to, it is done via excluding indices.
For java both words are:
word.substring(i, n), word.substring(0, n-i)
thanks a lot
bro when will rabinkarp video come..it helps a lot for my interview preparation
kindly upload it ASAP and make 100 days placement vids more regularly!!!
Haan Satwik bhai, iss weekend vahi laaenge sabse phele ❤️❤️🙇
Awesome
bhaiya rabin karp ki video kab ayegi
Dream Fist bhai, lecture written hai, baas 100days 100k placements series ka part hai, toh usi ke video series me Day28 ka part hai, both single Hashing & Double Hashing❤️❤️🙏
Okay bhaiya ❤️🙏