Skip to content

Commit fd67521

Browse files
refactor 86
1 parent a8f16c6 commit fd67521

File tree

1 file changed

+0
-10
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-10
lines changed

src/main/java/com/fishercoder/solutions/_86.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,7 @@
22

33
import com.fishercoder.common.classes.ListNode;
44

5-
/**
6-
* 86. Partition List
7-
*
8-
* Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
9-
* You should preserve the original relative order of the nodes in each of the two partitions.
10-
* For example,
11-
* Given 1->4->3->2->5->2 and x = 3,
12-
* return 1->2->2->4->3->5.
13-
*/
145
public class _86 {
15-
166
public static class Solution1 {
177
public ListNode partition(ListNode head, int x) {
188
if (head == null || head.next == null) {

0 commit comments

Comments
 (0)