strstr (Implement strStr)
Problem
Given two strings haystack and needle, return the index of the first occurrence of needle in haystack, or -1.
Loading...
Given two strings haystack and needle, return the index of the first occurrence of needle in haystack, or -1.