I don’t understand why it isn;t working
I don't know what the problem is
Node* head=nullptr;
initialize head with null,rest is good.
If this resolves your query then please mark it as resolved
Oh such a silly mistake! thankyou , you are a life saver.
1 Like