python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
'highlighting' a string according to a given pattern
I have a bunch of strings such as
1245046126856123
5293812332348977
1552724141123171
7992612370048696
6912394320472896
I give the program a pattern which in this case is '123' and the expected output...

STT
Votes: 0
Answers: 1
Why is the following code correct for computing the hash of a string?
I am currently reading about the Rabin Karp algorithm and as part of that I need to understand string polynomial hashing. From what I understand, the hash of a string is given by the following formula...
Arat254
Votes: 0
Answers: 1
Is there any hashing function which generates same results for nearly similar input?
I want to implement a problem solution that requires a hashing function that returns the same output for similar input. The input will be some code and I want the hashing function to ignore the variab...
Chaitak Gorai
Votes: 0
Answers: 1