Similar Collections


We are trying to list out the most frequently asked interview problems or the problem given in the coding rounds of IT giants.

questions

Title
Given a Binary Search Tree and 2 nodes value n1 and n2, your task is to find the lowest common ancestor of the two nodes. Assume that n1 and n2 both existing node value of the tree
Given a string that contains ternary expressions. The expressions may be nested. You need to convert the given ternary expression to a binary Tree and return the root
Given a binary tree, print the bottom view from left to right
Given a Binary Tree and a target key, write a function that prints all the ancestors of the key in the given binary tree
Given a Binary Tree of size N, write a program that prints all the possible paths from root node to the all the leaf node\'s of the binary tree
Given a binary tree, where every node value is a number between 0-9. Find the sum of all the numbers which are formed from root to leaf paths
Given a binary tree, and two node values your task is to find the minimum distance between them
Find the k-th smallest element in a given binary search tree (BST)
Write a program to print Level Order Traversal in spiral form of a binary tree
Given a binary Tree find the maximum path sum. The path may start and end at any node in the tree
Given an array pre[] of N nodes representing preorder traversal of BST. The task is to print its postorder traversal
Given two n-ary trees, the task is to check if they are mirrors of each other or not
Find number of nodes in a complete Binary Tree
total questions: 33

Questions

33

Views

376

Best Answers

299

Points

5