• + 0 comments

    Reversing a doubly linked list is all about carefully swapping next and prev for each node, one wrong move and the whole chain breaks. How did you handle the pointer swap without losing track of the list?