News

Start swapping the elements from this position to front. // Create a dummy node just before head. ListNode dummy = new ListNode(0); dummy.next = head; //Use two pointers to the dummy node. ListNode ...