# 3-gallon and 5-gallon jug 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/7074/measure-four-gallons-two-jugs
Source observed: 2026-11-05T00:29:50.276Z
Last checked: 2026-11-05T00:29:50.276+00:00
Indexed: 2026-11-07T01:15:47.509+00:00

---

# You have a 3-gallon jug and a 5-gallon jug. How do you measure exactly 4 gallons?

We include this as an Aced interview-practice question. It is categorized as a **Brainteaser**, associated with **Investment Banking**, and associated with **Centerview**. The question has been marked as last asked **7 months ago**.

## Access and answers

Detailed company statistics require an upgrade: [Upgrade](https://www.aced.io/upgrade?src=questions).

No answers have been contributed by the community yet. To submit an answer, [log in or sign up](https://www.aced.io/signup?src=nav&returnPath=/questions/7074/measure-four-gallons-two-jugs), then use the answer submission control.

## Related questions

- [How do you measure retention?](https://www.aced.io/questions/7385/measure-user-retention-metrics)
- [How do you measure success?](https://www.aced.io/questions/6926/define-measure-success-metrics)

## Related courses

### [Product Management Interview Prep](https://www.aced.io/courses/pm)

![Product Management Interview Prep](https://images.ctfassets.net/x78yjrjc11pq/4PFBEhtIRyKwPm14eaBAFm/ad92a8c4dd1dc51108b3a855de64473b/product_management_track_compressed_063e6d4b35.jpeg?w=800&h=800&fm=webp&q=75)

We prepare candidates for product-management interviews at Anthropic, OpenAI, Meta, Apple, Google, and other companies. The course covers AI product-sense rounds, vibe-coding prototypes, metrics questions, AI fluency, product strategy, product sense, analytical and execution interviews, leadership and drive interviews, and technical PM interviews.

### [System Design Interviews](https://www.aced.io/courses/system-design-interviews)

![System Design Interviews](https://images.ctfassets.net/x78yjrjc11pq/78x7miFZFjBCrM5GqftrMJ/2f6d26e632c4e7265c49f6a180227edb/system_design_track_compressed_26ac98a46e__281_29_5be2280f31.jpeg?w=800&h=800&fm=webp&q=75)

We teach candidates how to answer current system-design questions across product, infrastructure, and AI domains through in-depth video examples, written breakdowns, reference patterns, and mock-interview videos featuring senior engineers and managers.

## Our interview-preparation offerings

We provide courses and practice resources for 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, experiences, practice, coaching, resume review, salary negotiation, job referrals, and related career resources.

## Your answer

After preparing an answer, use **Submit** to mark the question complete.

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F7074%2Fmeasure-four-gallons-two-jugs&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%2F7074%2Fmeasure-four-gallons-two-jugs). Opening a form does not execute a tool.