shivprime94 / Data-Structure-Algorithms

Upload Solutions of any coding Platform. In designated folder if not there make new folder and upload.
36 stars 214 forks source link

Find the Index of the First Occurrence in a String #514

Closed the-iter8 closed 1 year ago

the-iter8 commented 1 year ago

Given two strings needle and haystack, return the index of the first occurrence of needle in a haystack, or -1 if the needle is not part of the haystack. Topic: Strings.