/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Partition { public: ListNode* partition(ListNode* pHead, int x) { ListNode* gGuard, *gTail, *lGuard, *lTail; gGuard = gTail = (ListNode*)malloc(sizeof(ListNode));...