Grokking Graph Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Is [6, 5, 3, 4, 0, 2, 1] also a valid sort output for example 3?

wuinko

Jun 10, 2022

Is [6, 5, 3, 4, 0, 2, 1] also a valid sort output for example 3?

0

0

Comments
Comments
Design Gurus
Design Gurus3 years ago

Yes, it is valid.

There are other valid topological ordering of the graph too.

On this page