Topological Sorting Problem[Microsoft,Flipkart,Amazon]

Problem:Given a directed graph you need to complete the function topoSort which returns an array having the topologically sorted elements of the array and takes two arguments.

 

Leave a Reply

Your email address will not be published. Required fields are marked *