Locate the first occurrence of a substring without using str.find or str.index.
Constraints
Example
>>> find_substring_index("hello world", "world")
6
>>> find_substring_index("hello world", "xyz")
-1
>>> find_substring_index("abc", "")
0
>>> find_substring_index("aaaa", "aa")
0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints