Reverse a linked list java code

By | May 24, 2014

This is the classic interview question. Generally you won’t encounter this question in the interview of a big tech giant. But I still like this questions very much . And there are many questions based on it. We request you to please do this question and practice both the approaches iterative and recursive.

Here’s the problem

Given a linked list of nodes how will you reverse it.

Here are two approaches to solve this problem .
Iterative Approach

Recursive Approach

Have got some interview questions submit it here.So that we can help other candidates like you to land their dream job

One thought on “Reverse a linked list java code

  1. Pingback: CA Technologies interview questions : set 1 | CrackDInterview

Leave a Reply

Your email address will not be published. Required fields are marked *