AlgoMaster Logo

Populating Next Right Pointers in Each Node II

tree=[1, 2, 3, 4, 5, null, 7]
0 / 22
123457Level 0Level 1Level 2
algomaster.io
Step:Start: Connect nodes at each level using BFS