# Tag Archives: tree-level-order

Given a binary tree, the task is to print the nodes of the tree in an anti-clockwise spiral manner.  Examples:  Input: 1 / \ 2â€¦ Read More
Given a binary tree, the task is to print the reverse level order in spiral form. Examples:  Input: 1 / \ 2 3 / \â€¦ Read More
Given a Binary Tree with distinct values, the task is to print the first smallest root to leaf path. We basically need to print theâ€¦ Read More
Given a Binary tree, the task is to print all the internal nodes in a tree. An internal node is a node which carries at leastâ€¦ 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 Binary Tree, print it’s left view. Left view of a Binary Tree is a set of nodes visible when tree is seen fromâ€¦ Read More
Given a binary tree and an integer b representing budget. The task is to find the count of maximum number of leaf nodes that canâ€¦ 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 a tree, with N nodes and E edges (every edge is denoted by two integers, X, Y stating that X is the parent ofâ€¦ Read More
Top view of a binary tree is the set of nodes visible when the tree is viewed from the top. Given a binary tree, printâ€¦ Read More
Given the root of a binary tree and a key x in it, find the distance of the given key from the root node. DisÂ­tanceâ€¦ Read More
Given an array of elements, the task is to insert these elements in level order and construct a tree. Input : arr[] = {10, 20,â€¦ 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.   Recommended:â€¦ Read More
Top view of a binary tree is the set of nodes visible when the tree is viewed from the top. Given a binary tree, printâ€¦ Read More