You are viewing a single comment's thread. Return to all comments →
what is the difference between head=head.next; and head.next=head.next.next;
what if we write head=head.next.next;
Seems like cookies are disabled on this browser, please enable them to open this website
Delete duplicate-value nodes from a sorted linked list
You are viewing a single comment's thread. Return to all comments →
what is the difference between head=head.next;
and head.next=head.next.next;
what if we write head=head.next.next;