Skip to content

Commit 60bf56c

Browse files
BarklimBarklim
Barklim
authored and
Barklim
committed
Create 0083.js
1 parent f6faf98 commit 60bf56c

File tree

3 files changed

+417
-329
lines changed

3 files changed

+417
-329
lines changed

0083-remove-duplicates-from-sorted-list.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,17 @@ var deleteDuplicates = function(head) {
3333

3434
return result.next;
3535
};
36+
37+
// var deleteDuplicates = function(head) {
38+
// let current = head
39+
40+
// while (current && current.next) {
41+
// if (current.val === current.next.val) {
42+
// current.next = current.next.next
43+
// } else {
44+
// current = current.next
45+
// }
46+
// }
47+
48+
// return head
49+
// };

0 commit comments

Comments
 (0)