+ 1
Why it is raising exception 🤔
3 ответов
+ 7
I changed line 17 to
head=newnode;
And it prints.
+ 2
Happy I could help!
Enjoy your coding!
+ 1
Ausgrindtube the first element inserted into queue must be it's head as well as tail. Thanks a lot for clarifying my doubt.