Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Determine the Order by Crachton
def checkio(words):
li = sorted(set(''.join(words)))
size = len(li)
ordered = ''
while len(ordered) < size:
for a in li:
if all(word[0] == a or a not in word for word in words):
ordered += a
li.remove(a)
words = map(lambda x: x.replace(a, ''), words)
words = list(filter(lambda x: len(x) > 1, words))
break
return ordered
Oct. 2, 2017