## Print Binary Tree levels in sorted order | Set 3 (Tree given as array)

Given a Complete Binary Tree as an array, the task is to print all of its levels in sorted order. Examples: Input: arr[] = {7,… Read More »

- Reverse zigzag Traversal of a Binary Tree
- Create new linked list from two given linked list with greater element at each node
- Print Binary Tree levels in sorted order | Set 3 (Tree given as array)
- Find sum of even and odd nodes in a linked list
- Count duplicates in a given linked list
- Delete Nth node from the end of the given linked list
- Sum of nodes in a linked list which are greater than next node
- Find the node with minimum value in a Binary Search Tree using recursion
- Sum of all distinct nodes in a linked list
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Sum of smaller elements of nodes in a linked list
- Check whether the sum of element of a node is equal to the given key value
- Create a linked list from two linked lists by choosing max element at each position
- Find the balanced node in a Linked List
- Print all the sub diagonal elements of the given square matrix
- Print all the super diagonal elements of the given square matrix
- Compare sum of first N-1 elements to Nth element of an array

Given a Complete Binary Tree as an array, the task is to print all of its levels in sorted order. Examples: Input: arr[] = {7,… 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 »