You are given a non empty binary tree and a key value, you need to return the level of the node with the given key
Category: Practice Problems
Practice Problems related to technical Interviews
Maximum Path Sum
You are given a non-empty binary tree, you need to return the maximum path sum. A path, in this problem, is defined as a sequence
Spiral Order Traversal
You are given a N x N matrix, you need to perform a spiral order traversal and print the elements of the matrix in that
Is given Tree a BST or not?
You are given a binary tree, you need to determine if the tree is a valid BST or not? For a tree to be a
Least Common Ancestor
You are given a Binary Tree and two nodes N1 and N2, you need to return the least common ancestor of N1 and N2. The
Diameter of a Binary Tree
The diameter or width of a tree is the count of nodes in the longest path from one leaf to another. Given a binary tree,