Skip to content

Tag Archives: Traversal

Given a Binary tree and a node. The task is to search and check if the given node exists in the binary tree or not.… Read More
Given a singly circular linked list. The task is to find the sum and product of nodes which are divisible by K of the given… Read More
Given a singly linked list which is sorted in ascending order and another singly linked list which is unsorted. The task is to print the… Read More
Given a singly linked list. The task is to find the sum and product of all of the nodes of the given linked list which… Read More
Given a linked list and a number N. Find the product of last n nodes of the linked list.Constraints : 0 <= N <= number… Read More
Given a singly linked list. The task is to find the product of all of the nodes of the given linked list. Examples: Input :… Read More
Given an NxN matrix. The task is to find the sum of the alternate elements of the given matrix. For example, in a 2 x… Read More
Given a N*N matrix. The task is to find the index of column with maximum sum. That is the column whose sum of elements are… Read More
Given an N*N matrix. The task is to find the index of a row with the maximum sum. That is the row whose sum of… Read More
Given an array of positive integers, the task is to find a point/element up to which elements form a strictly decreasing sequence first followed by… Read More
Given a doubly linked list containing N nodes, the task is to delete all the even nodes from the list. Examples: Input: Initial List =… Read More
Given a doubly linked list containing N nodes and given a number K. The task is to find the sum of all such nodes which… Read More
Given a doubly linked list containing N nodes and a number K, the task is to delete all the nodes from the list that are… Read More
Write a function to print spiral order traversal of a tree. For below tree, function should print 1, 2, 3, 4, 5, 6, 7.    … Read More
Given a singly linked list. The task is to find the sum of nodes of the given linked list. Task is to do A +… Read More