PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Jane Street

Five Pumpkins Weighed in Every Pair: Find the Total Weight

Last updated: Jul 2, 2026

Quick Overview

This question evaluates combinatorial counting, algebraic reasoning, and mental-arithmetic skills by testing understanding of pairwise sums and how individual elements contribute to aggregate totals.

  • medium
  • Jane Street
  • Software Engineering Fundamentals
  • Data Scientist

Five Pumpkins Weighed in Every Pair: Find the Total Weight

Company: Jane Street

Role: Data Scientist

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

You have 5 pumpkins. You weigh them two at a time, in every possible pairing, and the scale readings for the ten pairs are: $$21,\ 22,\ 23,\ 24,\ 25,\ 26,\ 27,\ 28,\ 29,\ 30 \text{ pounds.}$$ You are not told which pair of pumpkins produced which reading. What is the total weight of all five pumpkins? This is a phone-screen mental-math question — you should be able to reason it out and get an exact number without a calculator. ```hint Count the appearances There are $\binom{5}{2} = 10$ pairings. If you add up all ten scale readings, how many times does each individual pumpkin get counted in that grand sum? ``` ```hint Arithmetic series The ten readings are consecutive integers, so their sum is quick to compute: pair them up from the outside in, or use $\frac{(\text{first} + \text{last}) \times \text{count}}{2}$. ``` ### Constraints & Assumptions - All $\binom{5}{2} = 10$ distinct pairs are weighed exactly once. - The scale is exact (no measurement error); treat the ten readings as given data to work with, even if their exact realizability by five real weights is not assumed up front. - Individual pumpkin weights are positive real numbers — they are not required to be whole pounds. - The ten readings are given as a multiset; the correspondence between readings and pairs is unknown. ### Clarifying Questions to Ask - Does "any two at a time" mean all $\binom{5}{2} = 10$ possible pairs, each weighed exactly once? - Do we know which reading corresponds to which pair, or only the multiset of ten values? - Can individual pumpkins have non-integer weights, even though every pairwise reading is a whole number? - Is the question asking only for the total weight, or also for the individual weights? ### What a Strong Answer Covers ```premium-lock What a Strong Answer Covers ``` ### Follow-up Questions - Can you determine the individual weights of the five pumpkins, not just the total? Which readings can you immediately identify (e.g., what must the smallest and largest readings correspond to)? - Generalize: $n$ objects are weighed in all $\binom{n}{2}$ pairs. Express the total weight in terms of the sum of the pairwise readings. - Suppose one of the ten weighings was lost and you only have nine readings. Can you still recover the total weight? What additional reasoning is needed? - The ten pairwise readings here are all integers. Does that force the individual pumpkin weights to be integers? Why or why not?

Quick Answer: This question evaluates combinatorial counting, algebraic reasoning, and mental-arithmetic skills by testing understanding of pairwise sums and how individual elements contribute to aggregate totals.

Related Interview Questions

  • Alternating Die-Roll Game: Optimal Accept/Reject Strategy - Jane Street (hard)
  • Turning Interview Code into a Reusable Library or API - Jane Street (medium)
  • Build a Web Calculator That Matches a Reference App - Jane Street (medium)
  • Which Dice Game Wins More Often: One Six in 4 Rolls, or Double Sixes in 24 Rolls? - Jane Street (medium)
|Home/Software Engineering Fundamentals/Jane Street

Five Pumpkins Weighed in Every Pair: Find the Total Weight

Jane Street logo
Jane Street
Aug 28, 2025, 12:00 AM
mediumData ScientistOnsiteSoftware Engineering Fundamentals
0
0

You have 5 pumpkins. You weigh them two at a time, in every possible pairing, and the scale readings for the ten pairs are:

21, 22, 23, 24, 25, 26, 27, 28, 29, 30 pounds.21,\ 22,\ 23,\ 24,\ 25,\ 26,\ 27,\ 28,\ 29,\ 30 \text{ pounds.}21, 22, 23, 24, 25, 26, 27, 28, 29, 30 pounds.

You are not told which pair of pumpkins produced which reading. What is the total weight of all five pumpkins?

This is a phone-screen mental-math question — you should be able to reason it out and get an exact number without a calculator.

Constraints & Assumptions

  • All (52)=10\binom{5}{2} = 10(25​)=10 distinct pairs are weighed exactly once.
  • The scale is exact (no measurement error); treat the ten readings as given data to work with, even if their exact realizability by five real weights is not assumed up front.
  • Individual pumpkin weights are positive real numbers — they are not required to be whole pounds.
  • The ten readings are given as a multiset; the correspondence between readings and pairs is unknown.

Clarifying Questions to Ask

  • Does "any two at a time" mean all (52)=10\binom{5}{2} = 10(25​)=10 possible pairs, each weighed exactly once?
  • Do we know which reading corresponds to which pair, or only the multiset of ten values?
  • Can individual pumpkins have non-integer weights, even though every pairwise reading is a whole number?
  • Is the question asking only for the total weight, or also for the individual weights?

What a Strong Answer Covers Premium

Follow-up Questions

  • Can you determine the individual weights of the five pumpkins, not just the total? Which readings can you immediately identify (e.g., what must the smallest and largest readings correspond to)?
  • Generalize: nnn objects are weighed in all (n2)\binom{n}{2}(2n​) pairs. Express the total weight in terms of the sum of the pairwise readings.
  • Suppose one of the ten weighings was lost and you only have nine readings. Can you still recover the total weight? What additional reasoning is needed?
  • The ten pairwise readings here are all integers. Does that force the individual pumpkin weights to be integers? Why or why not?
Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Jane Street•More Data Scientist•Jane Street Data Scientist•Jane Street Software Engineering Fundamentals•Data Scientist Software Engineering Fundamentals

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.