Solution to Implement strStr() by LeetCode

25 Apr

Question: http://oj.leetcode.com/problems/implement-strstr/

Question Name: Implement strStr()

The KMP is a much better solution. But as long as brute force passed all tests, let’s use brute force.

3 Replies to “Solution to Implement strStr() by LeetCode

Leave a Reply to Brandon Cancel reply

Your email address will not be published.

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!