Remove Duplicates from Sorted List
来源:互联网 发布:淘宝直播怎么加入 编辑:程序博客网 时间:2024/05/16 08:27
package leet;public class RemoveDuplicatesFromSortedList {public ListNode deleteDuplicates(ListNode head) {if (head == null) {return null;}ListNode temp = head;while (temp != null && temp.next != null) {if (temp.val == temp.next.val) {temp.next = temp.next.next;} else {temp = temp.next;}}return head;}}
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove duplicates from sorted list
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- Remove Duplicates from Sorted List
- capture windows/screen using GDI+
- linux内核中的xx_initcall初始化标号
- POJ 2492 A Bug's Life 并查集的应用
- tftp: command not found
- ubuntu12下安装golang和IDE
- Remove Duplicates from Sorted List
- RemoveDuplicatesFromSortedListII
- 静默安装 收集
- 八皇后问题—递归实现
- hdu4661 树形DP
- 二叉树两结点的最低共同父结点
- lightoj 1061 KM 二分图匹配
- centOS6.4 install crmsh, old opensuse repository is useless
- 硬链接