We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8763c8 commit dd58f2cCopy full SHA for dd58f2c
1 file changed
src/OddEvenLinkedList328.java
@@ -47,6 +47,7 @@ public ListNode oddEvenList(ListNode head) {
47
return dummy.next;
48
}
49
50
+
51
public ListNode oddEvenList2(ListNode head) {
52
if (head == null) return null;
53
ListNode dummy = new ListNode(0);
@@ -67,6 +68,7 @@ public ListNode oddEvenList2(ListNode head) {
67
68
69
70
71
72
/**
73
* https://leetcode.com/problems/odd-even-linked-list/solution/
74
*/
0 commit comments