/*struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Partition { public: ListNode* partition(ListNode* pHead, int x) { if (pHead == nullptr) { return nullptr; } ListNode* pTempGreater = new ListNode(0); ListNode* pTempLess = new ListNode(0); ListNode...