Shortest Palindrome (LeetCode 214)
The problem You get a string . You may add characters only to the front of it…
Tag
6 posts
The problem You get a string . You may add characters only to the front of it…
The problem Given a string , decide whether it can be built by writing some…
The problem A happy prefix of a string is a non-empty prefix that is also a…
The problem You get two strings, and . Return the index where first appears…
This is the advanced end of the string toolkit. Most string problems are solved…
Ten problems that drill KMP’s prefix function and Rabin-Karp’s rolling hash from…