i am trying practice some coding question and wondering how I can calculate big O for following code string[i] in string[i+1:]
and string[i] not in seens
def findNoCurring(string):
seens = set()
for i in range(len(string)):
if not string[i] in string[i+1:] and string[i] not in seens:
return string[i]
else:
seens.add(string[i])
return None