Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
find in str solution in Clear category for Goes Right After by titaevskaya
def goes_after(word: str, first: str, second: str) -> bool:
first_ind = word.find(first)
second_ind = word.find(second)
return second_ind == first_ind + 1 and first_ind != -1
Sept. 5, 2021
Comments: