Back to Problems
tree Interview Questions
30 machine-learning interview questions on tree.
Practice on the problems board →Print All Root-to-Leaf Binary Tree Paths
Coding & Leetcode-style QuestionsFile System Encryption Count and Minimum-Cost Encryption
Coding & Leetcode-style QuestionsBinary Tree Vertical Order & Right Side View
Coding & Leetcode-style QuestionsLowest Common Ancestor (BST / Binary Tree / N-ary)
Coding & Leetcode-style QuestionsTree Diameter / Longest Path
Coding & Leetcode-style QuestionsSerialize and Deserialize Binary Tree with N-ary Follow-up
Coding & Leetcode-style QuestionsBinary Tree Vertical Order Traversal
Coding & Leetcode-style QuestionsPath Between Nodes in a Fibonacci Tree
Coding & Leetcode-style QuestionsLazy Binary Tree Inorder Iterator (BSTIterator)
Coding & Leetcode-style QuestionsMenu Tree Diff — Count Changed Nodes
Coding & Leetcode-style QuestionsBinary Tree Longest Consecutive Sequence II
Coding & Leetcode-style QuestionsKth Smallest Element in a BST
Coding & Leetcode-style QuestionsClassify Tree Node Relationship: Sibling, Cousin, or Other
Coding & Leetcode-style QuestionsOrg-Chart Salary Aggregation
Coding & Leetcode-style QuestionsOrg Chart Subtree Report Count with Incremental Updates
Coding & Leetcode-style QuestionsImplement a Trie (Prefix Tree)
Coding & Leetcode-style QuestionsHierarchical Path Key-Value Store
Coding & Leetcode-style QuestionsCompute Total Size of a File System
Coding & Leetcode-style QuestionsMaintain Manager/Peer Relationships and Answer Queries
Coding & Leetcode-style QuestionsForest Parent Array: Delete a Node
Coding & Leetcode-style QuestionsThrone Inheritance Order
Coding & Leetcode-style QuestionsPre-order Traversal Skipping Invalid Nodes
Coding & Leetcode-style QuestionsCount Palindrome-Formable Paths in a Tree
Coding & Leetcode-style QuestionsN-ary Tree Level Order Traversal
Coding & Leetcode-style QuestionsMinimum Edge Reversals from Every Root
Coding & Leetcode-style QuestionsRewrite Second Tree With Subtree Sums
Coding & Leetcode-style QuestionsBoundary of Binary Tree
Coding & Leetcode-style QuestionsVertical Order Traversal of a Binary Tree
Coding & Leetcode-style QuestionsPalindrome Ancestor Path Queries
Coding & Leetcode-style QuestionsConstruct Quad Tree
Coding & Leetcode-style Questions