[简单]28. 实现 strStr()
https://leetcode-cn.com/problems/implement-strstr/

能不动脑子为什么要折腾呢?
class Solution { public int strStr(String haystack, String needle) { if(needle.length() == 0) return 0; return haystack.indexOf(needle); } }
https://leetcode-cn.com/problems/implement-strstr/

能不动脑子为什么要折腾呢?
class Solution { public int strStr(String haystack, String needle) { if(needle.length() == 0) return 0; return haystack.indexOf(needle); } }