Back to course home
0% completed
Vote For New Content
Improvement in soln
Siddhartha
Sep 14, 2025
Instead of calling dfs function and storing each node in result array then sorting, we can just call dfs function then we can loop over visited array, sort adds overhead of O(vlon(v))
0
0
Comments
Comments
On this page