Top Linked List data structure interview questions and answers

Linked List Data structure A linked list is a linear data structure where each element is a separate object. Here is the top (most commonly) asked question in the Java interview. A linked list is one of the most favorite topics during the data structure and algorithms interview process. We are starting  from basic  : Read More…


Reverse a Linked list data structure in java

Linked List or Singly Linked List is a type of data structure. In a  linked list, each node stores the contents and a pointer (reference) of the next node. Reverse a Linked list is important to understand the flexibility and usability of Linked List. Question : Given the pointer to the head node of a linked list, the task is Read More…


Program for find n’th node from the end of a Linked List

Question: Given a Linked List and a number n, write a program that finds the value at the nth node from the end of the Linked List. Method 1 – Use length of linked list 1.   Calculate the length of Linked List. Follow this tutorial Find Length of a Linked List data 2.   Print Read More…


Find the middle of a given linked list data structure

Question: In given a Linked List,  find the middle of the list and print the number. Input : -> 4-> 2-> 7-> 9-> 1 Output : 7 Before starting you have to must know about Linked list and how to create it and Inserting node (data) in LinkedList. There is many approach to find middle number Read More…



Find Length of a Linked List data structure (Iterative and Recursive)

How to Find Length of Linked List data structure? Linked list A linked list is a linear data structure where each element is a separate object. Counting a node in a linked list is important in programming when we are using a linked list data structure. It will help you solve many problems like fining Read More…


Java LinkedList class

LinkedList class :  The underlying data structure is Double Linked List.  Insertion order is preserved.  Duplicates are allowed.  Heterogeneous objects are allowed.  Null insertion is possible.  Linked List implements Serializable and cloneable interfaces but not Random Access interfaces.  Linked List is the best choice if our frequent operation is insertion or deletion in the middle. Read More…