Arraylist of levels

https://ide.geeksforgeeks.org/xuUqQ0KYSV-code aint working

hi @darkthunderassassin_818a6616c3c74f13
u have shared code of structurally identical trees… kindly send the updated code…

sorry sir- here is my try plz chk! https://ide.geeksforgeeks.org/orTFShRBrl

hi @darkthunderassassin_818a6616c3c74f13
u can simply use a map to store the level order traversal, and then the thing is to just print in the desired format…
refer this code -->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.