Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner: sympy.topological_sort solution in Creative category for Determine the Order by Phil15
checkio=lambda W,T=__import__('sympy').topological_sort:''.join(T((set.union(*map(set,W)),{(c,s)for w in W for i,s in enumerate(w)for c in {*w[:i]}-{s}})))
Nov. 19, 2020
Comments: