100+ curated problems from top tech interviews
14 problems found
BFS level by level...
Find max sum path in tree...
Convert tree to/from string...
Build tree from traversals...
Check if root-leaf path equals target...
Inorder tree traversal...
Find max depth of tree...
Check if two trees are same...
Find LCA in binary search tree...
Get rightmost nodes at each level...
Check if tree is valid BST...
A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. The path sum of a path i...
Given the root of a binary tree, invert the tree, and return its root....
Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST....