Implement strStr()

Publicado el: 27 noviembre 2020
en el 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().


En esta página del sitio puede ver el video en línea Implement strStr() de Duración hora minuto segunda en buena calidad , que subió el usuario Rajiv Gyawali Code Academy 27 noviembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 78 veces y le gustó 1 a los espectadores. Disfruta viendo!