You are viewing a single comment's thread. Return to all comments →
In your first if statement, if head is null, head.next will throw a null pointer exception
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 →
In your first if statement, if head is null, head.next will throw a null pointer exception