Why your topological sort gives a different answer on every run
You have a few tasks, and some of them depend on others. You put them in a graph, sort it topologically, and print the order. Then you run the program again and get a different order. Both are correct
hmdsefi.hashnode.dev7 min read