83. Remove Duplicates from Sorted List
problem description
Given a sorted linked list, delete all duplicates such that each element appear only once.
Example 1:
Example 2:
algorithm thought
和上一题一样,甚至比上一题简单,使用递归解决
code
algorithm analysis
一次遍历解决问题,时间复杂度O(n)
Last updated