2 coding questions
Time - 60 minutes
Ques-1.
Can anyone tell optimal solution for this..



Ques2.
I tried to do this using BFS by grouping them taking alternate levels in one group and other levels in another group but it didn't worked can anyone share solution for this?


