My Blog List

[Leetcode Solution] Remove Duplicates from Sorted List

Analysis

  • Iterate all the nodes. If the next node's value equals to its value, then delete next node

Note

Code


UPDATED AT LEETCODE 2ND PASS

No comments:

Post a Comment

Enter you comment