hilary123's blog

By hilary123, history, 4 years ago, In English

Hello Everyone!

I have made a video tutorial on how we can compare substrings in constant time using string hashing in C++.

I have taken the problem from Codechef May CookOff "Chef Chefina and their friendship" which can be solved using hashing.

Check it out here

Thank You!

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

| Write comment?
»
4 years ago, # |
  Vote: I like it +4 Vote: I do not like it

compare substrings in constant time

Wow. I am really interested in how your hashing function would compute the hash of a string in O(1).