Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
SecondIndex.c solution in Clear category for Second Index by trudnopodobny
def second_index(text: str, symbol: str) -> [int, None]:
if text.count(symbol) < 2:
return None
first = text.find(symbol)
return text.find(symbol, first + 1)
Oct. 4, 2018
Comments: