class Solution { public: ListNode* reverseBetween(ListNode* head, int m, int n) { // write code here ListNode* dummy = new ListNode(-1); dummy->next = head; ListNode* pre = dummy; ListNode* curr = head; for (int i = 1; i < m; i++) { pre = curr; curr = curr->next; } for (int i = m; i < n;...