We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8f16c6 commit fd67521Copy full SHA for fd67521
src/main/java/com/fishercoder/solutions/_86.java
@@ -2,17 +2,7 @@
2
3
import com.fishercoder.common.classes.ListNode;
4
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
- */
14
public class _86 {
15
-
16
public static class Solution1 {
17
public ListNode partition(ListNode head, int x) {
18
if (head == null || head.next == null) {
0 commit comments