Implement strStr() LeetCode solution in C++

1
class Solution {
2
public:
3
int strStr(string haystack, string needle) {
4
return haystack.find(needle);
5
}
6
};

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0