Skip to content

Commit ef85606

Browse files
committed
modify code
1 parent 1cc64d5 commit ef85606

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/class05/Code04_DoubleLinkedListQuickSort.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,9 @@ public static Info partition(Node L, Node pivot) {
174174
rt = L;
175175
}
176176
} else {
177-
if (eh == null) {
178-
eh = L;
179-
et = L;
180-
} else {
181-
et.next = L;
182-
L.last = et;
183-
et = L;
184-
}
177+
et.next = L;
178+
L.last = et;
179+
et = L;
185180
}
186181
L = tmp;
187182
}

0 commit comments

Comments
 (0)