# Binary-tree range-sum interview question | Aced

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/4213/sum-elements-binary-tree-range
Source observed: 2026-11-05T00:06:09.278Z
Last checked: 2026-11-05T00:06:09.278+00:00
Indexed: 2026-11-06T18:55:44.424+00:00

---

# Binary-tree range-sum interview question

We publish interview-practice questions, interview experiences, community answers, related questions, and preparation courses through Aced, formerly Exponent.

## Question

Find the sum of all elements in a binary tree that fall within the range `[low, high]`, where `low` and `high` are integers.

You can mark the question complete after submitting an answer. Detailed company statistics for this question are available through [Upgrade](https://www.aced.io/upgrade?src=questions).

## Question details

- **Reported last asked:** 2 years ago
- **Roles:** [Machine Learning Engineer](https://www.aced.io/questions?role=ml-engineer), [Software Engineer](https://www.aced.io/questions?role=swe)
- **Company:** [Meta](https://www.aced.io/questions?company=meta-facebook) — listed as “Meta2” in the question details
- **Categories:** [Data Structures & Algorithms](https://www.aced.io/questions?type=algorithms), [Coding](https://www.aced.io/questions?type=coding)
- **Interview count shown:** 2 interviews

## Interview experience

One interview experience is shared for this question:

[Meta · 2 years ago](https://www.aced.io/experiences/meta-facebook-machine-learning-engineer-interview-32229f)

> “It had 1 Phone screen with 2 leetcode style questions the loop had: 1 behavioral 2 leetcode style rounds 1 ml system design (with 1 more follow up)”

- **Role:** Machine Learning Engineer
- **Level:** Mid Level / L4

## Community answers

No answers have been contributed by the community yet. To answer, [log in or sign up](https://www.aced.io/signup?src=nav&returnPath=/questions/4213/sum-elements-binary-tree-range).

## Related questions

- [Find the k-th smallest and k-th largest element in a binary search tree (BST).](https://www.aced.io/questions/1162/k-th-smallest-largest-in-bst)
- [Find the equilibrium index in an array where sum of elements to the left is equal to the sum of elements to the right.](https://www.aced.io/questions/5429/find-equilibrium-index-in-array)
- [Given an array of n integers and a number k, find the maximum number of elements whose sum is less than k, and return their sum.](https://www.aced.io/questions/4638/max-elements-sum-less-than-k)

## Related courses

### [Machine Learning Engineer Interview Prep](https://www.aced.io/courses/ml-engineer)

Land your dream machine learning role at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Explore ML system design, core concepts, coding, behavioral interviews, and more.

![Machine Learning Engineer Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/6UfkHxUyLQVfDHSfLNQtWa/1be1539a65b4f6f15201f5b573c0a578/ML_Engineer_Interview_Prep_Course.jpeg?w=800&h=800&fm=webp&q=75)

### [Software Engineering Interview Prep](https://www.aced.io/courses/software-engineering)

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

![Software Engineering Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/4VkuYewBHUFIVUS5oJDW5h/02e833439b1289f25f38f13f81cbdca3/adobe_stock_optimized.jpeg?w=800&h=800&fm=webp&q=75)

## Explore Aced

We offer interview preparation courses and practice resources across product management, forward-deployed engineering, engineering management, software engineering, system design, data science, machine learning, data engineering, AI engineering, investment banking, generative AI, security engineering, technical program management, solutions architecture, UX/product design, and BizOps & Strategy.

We also offer interview loops, interview experiences, practice questions, mock interviews and coaching, resume review, salary negotiation, job referrals, resources, university and business programs, recruiter services, and an affiliate program.

- [All questions](https://www.aced.io/questions)
- [Courses](https://www.aced.io/courses?src=nav)
- [Practice](https://www.aced.io/practice?src=nav)
- [Experiences](https://www.aced.io/experiences?src=nav)
- [Coaching](https://www.aced.io/coaching?src=nav)
- [Pricing](https://www.aced.io/upgrade?src=nav)
- [Log in](https://www.aced.io/login?src=nav)
- [Sign up](https://www.aced.io/signup?src=nav)

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4213%2Fsum-elements-binary-tree-range&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4213%2Fsum-elements-binary-tree-range). Opening a form does not execute a tool.