*node= *node->next; //just write it into given code
You're leaking memory there.
oh.. ya... Mean I have to free it after deleting.....Thank you Genius ...
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.