Add two numbers

Add two numbers is a problem in which we have given two non-empty linked list representing a non-negative integer. The digit are store in reverse order and every node must contain only a single digit. Add the two numbers and print the result by using a linked list. Input Format …

Read moreAdd two numbers

Find Nth Node

In the given linked list find nth node. The function should return the data value in the nth node. n is input integer index. Example Time complexity : O(n) Algorithm 1. Initialize count equal to 0. 2. Traverse in the linked list.         a. If count is equal to the input …

Read moreFind Nth Node