Reverse zigzag Traversal of a Binary Tree
Given a Binary Tree, the task is to print the Reverse zigzag Order of the tree. Examples: Input: 1 / \ 2 3 / \… Read More »
Given a Binary Tree, the task is to print the Reverse zigzag Order of the tree. Examples: Input: 1 / \ 2 3 / \… Read More »
Given a linked list. The task is to change the value of the previous and next node of a node to 0 if the current… Read More »
Given a Binary Tree, the task is to find the Coefficient of Range in it. Range is defined as the difference between the maximum and… Read More »
Given a binary tree and a node in the binary tree, find Levelorder successor of the given node. That is, the node that appears after… Read More »
Given a binary tree and a node in the binary tree, find Levelorder Predecessor of the given node. That is, the node that appears before… Read More »
Given an N-ary tree, print all the levels with odd and even number of nodes in it. Examples: For example consider the following tree 1… Read More »
You are given a matrix of order N*N. The task is to find the resultant matrix by adding the mirror image of given matrix with… Read More »
Given a Binary Node and a node. The task is to search and check if the given node exits 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 <=… 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 »