3B - Bear and Special Dfs

4.3

19 votes
Approved, Depth First Search, Graphs, Medium, Ready, Segment Trees, Trees
The Editorial is locked. In order to qualify for points, you need to solve the problem without unlocking the editorial.
Are you sure you want to unlock the tab?
Unlock it

?