Leetcode #28. Implement strStr()
Leetcode #28 1.Solution 1: Rude @Use the needle to be a seed of search index. ugly and complicate <script src="https://gist.github.com/addand/b9cf4307fa43709ac30047271484ac61.js"></script> 2. Solution 2: Smart and Simple @ Use haystack to be a seed and search it. it’s more easy and simple. 3. Solution 3: TODO KVM algorithm.