/* struct ListNode { int val; struct ListNode next; ListNode(int x) : val(x), next(NULL) {} };/ class Partition { public: ListNode* partition(ListNode* pHead, int x) { // write code here struct ListNodelessHead,lessTail,greaterHead,greaterTail; //开一个哨兵位头结点,方便尾插 lessHead=lessTail=(struct ListNode)mal...