Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
Stack is another option

madhu.sambangi

Sep 8, 2023

Instead of LinkedList to hold the level arrays and adding at the beginning of the LinkedList every time, a Stack<List<Integer>> is another option we could try. It worked for me.

1

0

Comments
Comments