Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Replica solution solution in Clear category for Determine the Order by khudr
def checkio(data):
alphabet = sorted(set(''.join(data)))
res = ''
for _ in range(len(alphabet)):
for c in alphabet:
if c in res:
continue
if all(c not in word or c == word[0] for word in data):
break
res += c
for i in range(len(data)):
data[i] = data[i].replace(c, '')
return res
March 3, 2024
Comments: