aboutsummaryrefslogtreecommitdiff
path: root/Computer_Science/leetcode/86-partition_list.c~
blob: 98ef6bf437c8c7b9d2d2e02098928f2841a2156d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>

/**
 * Definition for singly-linked list.
 * struct ListNode {
 *     int val;
 *     struct ListNode *next;
 * };
 */
struct ListNode {
    int val;
    struct ListNode *next;
};
struct ListNode* partition(struct ListNode* head, int x) {
	struct ListNode *h;
	struct ListNode *hl;
	struct ListNode *hg;

	for(; head != NULL; head = head->next) {
		if(head->val < x)
			;
		else
			;
	}

	
}