diff options
Diffstat (limited to 'Computer_Science/leetcode/86-partition_list.c~')
| -rw-r--r-- | Computer_Science/leetcode/86-partition_list.c~ | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Computer_Science/leetcode/86-partition_list.c~ b/Computer_Science/leetcode/86-partition_list.c~ new file mode 100644 index 0000000..98ef6bf --- /dev/null +++ b/Computer_Science/leetcode/86-partition_list.c~ @@ -0,0 +1,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 + ; + } + + +} |
