Implement the standard library function strstr(haystack, needle), which returns the index of the first occurrence of needle in haystack, or -1 if not found.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.