Solution to LeetCode Implement strStr() problem.
This is just standard string matching. We can be more fancy and use KMP or Boyer-Moore, but the naive solution passes the test cases.
Solution to LeetCode Implement strStr() problem.
This is just standard string matching. We can be more fancy and use KMP or Boyer-Moore, but the naive solution passes the test cases.