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…