InterviewSolution
| 1. |
How To Reverse A Linked List In Java? |
|
Answer» This is probably the most popular linked list interview question, which is asked to both junior PROGRAMMERS with 2 to 3 years of experience and senior developers CONTAINING 4 to 6 years of experience. Some of you may think this is the simplest of linked list problem but when you actually go doing it, you will be stuck and many places. The simplest approach to solving this problem is by USING recursion because linked list is a recursive data STRUCTURE as shown in the solution article. This is probably the most popular linked list interview question, which is asked to both junior programmers with 2 to 3 years of experience and senior developers containing 4 to 6 years of experience. Some of you may think this is the simplest of linked list problem but when you actually go doing it, you will be stuck and many places. The simplest approach to solving this problem is by using recursion because linked list is a recursive data structure as shown in the solution article. |
|