??????2013??У?б?????????
???????????? ???????[ 2013/10/28 10:07:54 ] ????????????
?????????C++????
????[cpp] view plaincopyprint?
????//copyright@caopengcs 2013/10??
????class Solution {
????public:
????char *strStr(char *haystack?? char *needle) {
????// Start typing your C/C++ solution below
????// DO NOT write int main() function
????int i??j;
????for (i = j = 0; haystack[i] && needle[j];) {
????if (haystack[i] == needle[j]) {
????++i;
????++j;
????}
????else {
????i = i - j + 1;
????j = 0;
????}
????}
????return needle[j]?0:(haystack + i - j);
????}
????};
????//copyright@caopengcs 2013/10??
????class Solution {
????public:
????char *strStr(char *haystack?? char *needle) {
????// Start typing your C/C++ solution below
????// DO NOT write int main() function
????int i??j;
????for (i = j = 0; haystack[i] && needle[j];) {
????if (haystack[i] == needle[j]) {
????++i;
????++j;
????}
????else {
????i = i - j + 1;
????j = 0;
????}
????}
????return needle[j]?0:(haystack + i - j);
????}
????};
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11