117. Populating Next Right Pointers in Each Node II
This problem requires us to point the next of the left node in each layer to the right node. Because it is processed layer by layer, it is very intuitive to think of using BFS to solve it.
Browsing Tag