Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
8-liner: easy solution in Clear category for Determine the Order by przemyslaw.daniel
def checkio(groups):
out, chars = "", ''.join(sorted(set(''.join(groups))))
while chars:
for i in chars:
if all([x.find(i) in [-1, 0] for x in groups]):
groups = [x.replace(i, '') for x in groups]
out, chars = out+i, chars.replace(i, '')
return out
Feb. 7, 2017
Comments: