Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple and fast solution in Speedy category for Long Non Repeat by mindaugas.dadurkevicius
def non_repeat(line):
answer = ''
for i in range(len(line)):
for i2 in range(i,len(line)):
if len(set(line[i:i2+1])) == len(line[i:i2+1]) and len(line[i:i2+1]) > len(answer):
answer = line[i:i2+1]
return answer
Sept. 7, 2018
Comments: