Skip to content

Commit dd58f2c

Browse files
committed
OddEvenLinkedList328
1 parent e8763c8 commit dd58f2c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/OddEvenLinkedList328.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public ListNode oddEvenList(ListNode head) {
4747
return dummy.next;
4848
}
4949

50+
5051
public ListNode oddEvenList2(ListNode head) {
5152
if (head == null) return null;
5253
ListNode dummy = new ListNode(0);
@@ -67,6 +68,7 @@ public ListNode oddEvenList2(ListNode head) {
6768
return dummy.next;
6869
}
6970

71+
7072
/**
7173
* https://leetcode.com/problems/odd-even-linked-list/solution/
7274
*/

0 commit comments

Comments
 (0)