Tree Interview Questions
156 real interview questions test Tree. Practice any of them in the code editor and get AI feedback on your solution.
- Junior21% (33)
- Mid/Senior54% (85)
- Staff24% (38)
Companies that ask Tree the most
Questionspage 2 of 2
- Maximum Binary Tree3 companiesMid/Senior
- Univalued Binary Tree3 companiesJunior
- Validate Binary Tree Nodes3 companiesMid/Senior
- Number of Good Leaf Nodes Pairs3 companiesMid/Senior
- Even Odd Tree3 companiesMid/Senior
- Count Nodes With the Highest Score3 companiesMid/Senior
- Number of Good Paths3 companiesStaff
- Height of Binary Tree After Subtree Removal Queries3 companiesStaff
- Minimum Number of Operations to Sort a Binary Tree by Level3 companiesMid/Senior
- Find Minimum Diameter After Merging Two Trees3 companiesStaff
- Sum of Perfect Square Ancestors3 companiesStaff
- Second Minimum Node In a Binary Tree2 companiesJunior
- Increasing Order Search Tree2 companiesJunior
- Smallest String Starting From Leaf2 companiesMid/Senior
- Path In Zigzag Labelled Binary Tree2 companiesMid/Senior
- Binary Tree Coloring Game2 companiesMid/Senior
- All Elements in Two Binary Search Trees2 companiesMid/Senior
- Longest ZigZag Path in a Binary Tree2 companiesMid/Senior
- Frog Position After T Seconds2 companiesStaff
- Pseudo-Palindromic Paths in a Binary Tree2 companiesMid/Senior
- Number of Nodes in the Sub-Tree With the Same Label2 companiesMid/Senior
- Number of Ways to Reorder Array to Get Same BST2 companiesStaff
- Reachable Nodes With Restrictions2 companiesMid/Senior
- Difference Between Maximum and Minimum Price Sum2 companiesStaff
- Cousins in Binary Tree II2 companiesMid/Senior
- Count Pairs of Connectable Servers in a Weighted Tree Network2 companiesMid/Senior
- Maximize the Number of Target Nodes After Connecting Trees I2 companiesMid/Senior
- Maximize the Number of Target Nodes After Connecting Trees II2 companiesStaff
- Maximum Profit from Trading Stocks with Discounts2 companiesStaff
- Minimum Increments to Equalize Leaf Paths2 companiesMid/Senior
- Verify Preorder Serialization of a Binary Tree1 companyMid/Senior
- Maximum Binary Tree II1 companyMid/Senior
- Insufficient Nodes in Root to Leaf Paths1 companyMid/Senior
- Number Of Ways To Reconstruct A Tree1 companyStaff
- Tree of Coprimes1 companyStaff
- Count Ways to Build Rooms in an Ant Colony1 companyStaff
- Evaluate Boolean Binary Tree1 companyJunior
- Create Components With Same Value1 companyStaff
- Closest Nodes Queries in a Binary Search Tree1 companyMid/Senior
- Cycle Length Queries in a Tree1 companyStaff
- Make Costs of Paths Equal in a Binary Tree1 companyMid/Senior
- Minimum Edge Weight Equilibrium Queries in a Tree1 companyStaff
- Count Valid Paths in a Tree1 companyStaff
- Maximum Points After Collecting Coins From All Nodes1 companyStaff
- Maximum Score After Applying Operations on a Tree1 companyMid/Senior
- Find Number of Coins to Place in Tree Nodes1 companyStaff
- K-th Largest Perfect Subtree Size in Binary Tree1 companyMid/Senior
- Check if DFS Strings Are Palindromes1 companyStaff
- Maximize Sum of Weights after Edge Removals1 companyStaff
- Longest Special Path II1 companyStaff
- Shortest Path in a Weighted Tree1 companyStaff
- Maximum Good Subtree Score1 companyStaff
- Find Weighted Median Node in Tree1 companyStaff
- Maximum Subgraph Score in a Tree1 companyStaff
- Total Sum of Interaction Cost in Tree Groups1 companyStaff
- Pythagorean Distance Nodes in a Tree1 companyMid/Senior