Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Recursive search solution in Clear category for Long Non Repeat by fed.kz
def non_repeat(text):
if len(text) == len(set(text)): return text
return max(non_repeat(text[:-1]), non_repeat(text[1:]), key=len)
Nov. 23, 2018
Comments: