#include /** * 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 ; } }