You are viewing a single comment's thread. Return to all comments →
why you are using Queue type reference variable since also it is perfectly working with linkedlist type i.e.
LinkedList l=new LinkedList();
what is the problem with the above way...
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Level Order Traversal
You are viewing a single comment's thread. Return to all comments →
why you are using Queue type reference variable since also it is perfectly working with linkedlist type i.e.
LinkedList l=new LinkedList();
what is the problem with the above way...