https://github.com/gyawalirajiv/leetc...
Implement strStr().
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Clarification:
What should we return when needle is an empty string? This is a great question to ask during an interview.
For the purpose of this problem, we will return 0 when needle is an empty string. This is consistent to C's strstr() and Java's indexOf().
Sur cette page du site, vous pouvez voir la vidéo en ligne Implement strStr() durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Rajiv Gyawali Code Academy 27 novembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 78 fois et il a aimé 1 téléspectateurs. Bon visionnage!