Reversing a linked list in Java, recursively
There’s code in one reply that spells it out, but you might find it easier to start from the bottom up, by asking and answering tiny questions (this is the approach in The Little Lisper): What is the reverse of null (the empty list)? null. What is the reverse of a one element list? the … Read more