Question catalog › Coding exercise › Meta
Find the sum of all elements in a binary tree that fall within the range [low, high], where 'low' and 'high' are integers.
- Coding exercise
- Meta
- Easy
- 10 min
Sign in to view the question description. Premium company questions require an active Premium plan.
How to approach this coding exercise
Clarify the inputs and expected output, explain an approach, and check edge cases. Discuss correctness and complexity before implementing. Use coding practice when your target role requires it.
Practice this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.
Return to the question catalog · PM interview preparation guide
Practice guidance published by PMMockr Editorial. Company names are descriptive and do not imply affiliation.
Related coding exercises
- Find the largest perimeter of an island given a two-dimensional array of 1's and 0's representing land and water.Meta · Coding exercise · Medium
- Product of Array Except SelfMeta · Coding exercise · Medium
- Write a function to balance parentheses in a given string by removing the fewest characters possible. Ensure that each opening parenthesis has a corresponding closing parenthesis and each pair is properly nested.Meta · Coding exercise · Easy
- Is this a valid palindrome?Meta · Coding exercise · Easy
- Valid ParenthesesMeta · Coding exercise · Easy