Implement strStr()

Publicado em: 27 Novembro 2020
no canal de: Rajiv Gyawali Code Academy
78
1

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().


Nesta página do site você pode assistir ao vídeo on-line Implement strStr() duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Rajiv Gyawali Code Academy 27 Novembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 78 vezes e gostou 1 espectadores. Boa visualização!