I’m trying topological sort using dfs.
these two are identical codes, only that in one i used map where as in other i used unordered map.
the one with map works. the one with unordered map misses a node during topological function call.
can someone explain the reason to me.
Link to code using map: https://ide.codingblocks.com/s/224603
Link to code using unordered_map: https://ide.codingblocks.com/s/224523
Thanks