mirror of
https://github.com/Manoj-HV30/dsa-competitive-programming.git
synced 2026-05-16 19:35:22 +00:00
12 lines
250 B
C++
12 lines
250 B
C++
class Solution{
|
|
public :
|
|
int strStr(string haystack, string needle){
|
|
if(needle.empty()) return 0;
|
|
int n = haystack.length(), m = needle.length();
|
|
for(int i =0;i<=n-m; i++){
|
|
|
|
}
|
|
|
|
}
|
|
}
|