Print level order traversal line by line | Set 1 | GeeksforGeeks

preview_player
Показать описание


This video is contributed by Anant Patni

Please Like, Comment and Share the Video among your friends.

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

Hi, good videos. Your 1st while loop is checking for wrong condition which will cause infinite loop. Check for queue not being empty instead of 1.

vishalmahavratayajula