28. Find the Index of the First Occurrence in a String | Leetcode | Python

preview_player
Показать описание
#leetcode #python #pythonprogramming
Рекомендации по теме
Комментарии
Автор

class Solution(object):
def strStr(self, haystack, needle):
if needle in haystack:
return haystack.index(needle)
else:
return -1

srikanths
Автор

Can you please provide the solution java?

pratyushasarangi
join shbcf.ru