Most Efficient Time Complexity of Topological Sorting is? (V – number of vertices, E – number of edges)
(a) O(V + E)
(b) O(V)
(c) O(E)
(d) O(V*E)
The question was asked in a job interview.
This intriguing question comes from Topological Sort topic in division Miscellaneous of Data Structures & Algorithms II