I don't know what the problem is


I don’t understand why it isn;t working

Hey @chetan_aggarwalbX1

Node* head=nullptr;

initialize head with null,rest is good.

If this resolves your query then please mark it as resolved :slight_smile:

Oh such a silly mistake! thankyou , you are a life saver.

1 Like