import java.util.*; public class Solution { public ListNode reverseBetween (ListNode head, int m, int n) { if(head == null || head.next == null) return head; ListNode ret = head; ListNode pre = null,next = null; for(int i=1; i<m; i++){ pre = head; ...