Please read the new rule regarding the restriction on the use of AI tools. ×

nandapavan26's blog

By nandapavan26, history, 13 months ago, In English

Question: In some string problems l have used hashing for checking a substring is present in a given string in o(1) [i.e for matching a substring] but i had a doubt that how can we say that hashing doesn't undergo collision while checking for matching substrings?

Note: the hashing logic is the same logic that used in rabin karp algorithm for patter matching. Please correct me if am wrong in any case.

Everyone are invited to solve my doubt

Thanks in Advance !!!

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it