int getListSize(struct ListNode *head) { int cnt=0; while(head) { head=head->next; cnt++; } return cnt; } struct ListNode* reverseK(struct ListNode *head, int start,int end) { struct ListNode *p,*q,*tmp,*subhead,*subend,*subheadpre,*subendnext,*temp; ...