ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
great solution we are visiting each node only 2 time when we are moving down and up so TC will remain O(N)
can you not do bfs, then reverse it?
Incorrect problem# in the title
Fixed, thanks for the heads up
great solution we are visiting each node only 2 time when we are moving down and up so TC will remain O(N)
can you not do bfs, then reverse it?
Incorrect problem# in the title
Fixed, thanks for the heads up