Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Determine the Order by Cairnarvon
def checkio(data):
chars = set(''.join(data))
dec = ''
while chars:
for c in sorted(chars):
if all(c not in s or c == s[0] for s in data):
dec += c
break
else:
# Can't determine an answer
return None
chars -= {dec[-1]}
data = [s.replace(dec[-1], '') for s in data]
return dec
May 22, 2013
Comments: