We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
cmiiw, if head was null then it just return null value, which is valid.
His code works like a charm. But I think it is also good to add delete node like so
Delete duplicate-value nodes from a sorted linked list
You are viewing a single comment's thread. Return to all comments →
cmiiw, if head was null then it just return null value, which is valid. His code works like a charm. But I think it is also good to add delete node like so