/* 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 ListNode* lessHead,*lessTail; ListNode* greaterHead,*greaterTail; lessHead = lessTail = (ListNode*)malloc(sizeo...