/* struct ListNode { int val; struct ListNode next; ListNode(int x) : val(x), next(NULL) {} };/ class Partition { public: ListNode* partition(ListNode* pHead, int x) { //创建哨兵位 方便尾插 ListNode* less_head, *greater_head, less_tail, greater_tail; less_head = less_tail = (ListNode)malloc(sizeof(ListNode))...