878 shaares
/ check if needle is empty /
/ return haystack /
/ loop over haystack /
/* while current character of haystack is equal to the corresponding
- character in needle /
/ check if we have the complete needle */
/ check if needle is empty /
/ return haystack /
/ loop over haystack /
/* while current character of haystack is equal to the corresponding