# Intersection over Union for Bounding Boxes — Interview Question

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/6596/compute-intersection-over-union-bounding-boxes
Source observed: 2026-11-05T00:17:52.223Z
Last checked: 2026-11-05T00:17:52.223+00:00
Indexed: 2026-11-06T22:34:59.245+00:00

---

# Intersection over Union for Bounding Boxes

We publish this coding interview question for candidates preparing for machine learning engineering interviews. The task is:

> Given a list of bounding boxes and annotations, write a function to compute Intersection over Union.

## Question details

- **Category:** [Data Structures & Algorithms](https://www.aced.io/questions?type=algorithms)
- **Type:** [Coding](https://www.aced.io/questions?type=coding)
- **Role:** [Machine Learning Engineer](https://www.aced.io/questions?role=ml-engineer)
- **Company:** [Apple](https://www.aced.io/questions?company=apple)
- **Interview listing:** 1 interview; reported last asked 3 months ago

The page does not include a contributed solution or implementation. Sign in or sign up to submit an answer; submitting marks the question complete. Detailed company statistics require [an upgrade](https://www.aced.io/upgrade?src=questions).

## Interview experience

One shared interview experience is associated with this question:

- [Apple · 3 months ago](https://www.aced.io/experiences/apple-senior-machine-learning-engineer-interview-649eca)
  - **Reported experience:** “The interview was \"Python Coding\" so I prepared for Data Structures and Algorithms but I wasn't expecting this question.”
  - **Role:** Machine Learning Engineer
  - **Level:** Senior / L5
  - **Company image:** [Apple logo](https://exponent-static.s3.amazonaws.com/company_logos/apple.png)

## Community answers

No answers have been contributed by the community yet.

## Related questions

- [Compute mean average precision, given a list of annotations and bounding boxes for a dataset.](https://www.aced.io/questions/6597/compute-mean-average-precision-bounding-boxes)
- [Given the head of two singly linked lists, write a function to return the point where they intersect (if any).](https://www.aced.io/questions/4634/linked-lists-intersection)
- [Write functions to serialize and deserialize a list of strings.](https://www.aced.io/questions/1307/serialize-deserialize-list-strings)

## Related courses

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

![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)

We cover mock interviews, frameworks, and advice from senior candidates for machine learning roles at Meta, Google, Amazon, Apple, Microsoft, Nvidia, and other companies. Topics include ML system design, core concepts, coding, and behavioral interviews.

### [Behavioral Interviews: A Practical Guide for Engineers](https://www.aced.io/courses/eng-behavioral)

![Behavioral Interviews: A Practical Guide for Engineers](https://images.ctfassets.net/x78yjrjc11pq/47qcoHjzFZXE37GoacedkB/9d8e3f4910d8b06b21e76745cd9cbff3/AdobeStock_1142146335.jpeg?w=800&h=800&fm=webp&q=75)

We help candidates prepare for senior+ behavioral interviews at FAANG and Tier-1 companies, with guidance from staff and principal engineers from Meta, Netflix, Google, and more. The course addresses downleveling, communicating past projects, and interview responses.

## Browse our interview preparation

We provide preparation across these areas:

- [Product Management](https://www.aced.io/courses/pm?src=nav) — Ace product interviews from strategy cases to technical skills.
- [Forward Deployed](https://www.aced.io/courses/forward-deployed-engineering?src=nav) — Beta preparation for FDE loops at Anthropic, OpenAI, Palantir, and more.
- [Engineering Management](https://www.aced.io/courses/engineering-management?src=nav) — Review leadership and people-management skills.
- [Software Engineering](https://www.aced.io/courses/software-engineering?src=nav) — Learn strategies for coding problems.
- [System Design](https://www.aced.io/courses/system-design-interviews?src=nav) — Define architectures, interfaces, and databases under time pressure.
- [Data Science](https://www.aced.io/courses/data-science?src=nav) — Execute statistical techniques and experimentation.
- [Machine Learning](https://www.aced.io/courses/ml-engineer?src=nav) — Review building, evaluating, and deploying AI/ML models.
- [Data Engineering](https://www.aced.io/courses/data-engineering?src=nav) — Design data models and ETL pipelines.
- [AI Engineering](https://www.aced.io/courses/ai-engineering?src=nav) — New.
- [Investment Banking](https://www.aced.io/ib?src=nav) — New.
- [Generative AI](https://www.aced.io/courses/gen-ai-interviews?src=nav)
- [Security Engineer](https://www.aced.io/courses/security-engineer?src=nav)
- [TPM](https://www.aced.io/courses/tpm?src=nav)
- [Solutions Architect](https://www.aced.io/courses/solution-architect-interview?src=nav)
- [UX / Product Design](https://www.aced.io/courses/product-designer-interview?src=nav)
- [BizOps & Strategy](https://www.aced.io/courses/bizops?src=nav)
- [View all courses](https://www.aced.io/courses?src=nav)

We also provide [Loops](https://www.aced.io/guides?src=nav), [Experiences](https://www.aced.io/experiences?src=nav), [Practice](https://www.aced.io/practice?src=nav), and [coaching](https://www.aced.io/coaching?src=nav), including mock interviews, resume review, and salary negotiation. Candidates can [sign up](https://www.aced.io/signup?src=nav) or [log in](https://www.aced.io/login?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%2F6596%2Fcompute-intersection-over-union-bounding-boxes&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%2F6596%2Fcompute-intersection-over-union-bounding-boxes). Opening a form does not execute a tool.