Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • OOP & Testbench Puzzles25
  • Concurrency & Timing Puzzles25
  • Randomization & Constraint Puzzles25
  • SVA Assertion Puzzles25
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
    • Classic Brain Teasers
      • 9 Balls, 1 Heavier, 2 Weighings
      • 2 Eggs and 100 Floors
      • Burning Ropes to Measure 45 Minutes
      • Measure 4 Liters with 3L and 5L Jugs
      • Bridge and Torch (1, 2, 7, 10 Minutes)
      • 100 Prisoners and One Light Switch
    • Probability Puzzles
    • Digital Logic Puzzles
    • Debugging Riddles
    • Logic & Aptitude Puzzles: Tricky Q&A
  • Scenario & Debug Puzzles25
  • Interview Prep: Puzzle Rounds5
  • DV Puzzle Cheatsheet
Loading lesson

‹Classic Brain Teasers
  1. Topics
  2. DV Interview Puzzles
  3. Logic & Aptitude Puzzles
  4. Classic Brain Teasers
  5. 9 Balls, 1 Heavier, 2 Weighings

VLSI DV Interview Puzzles · All levels

9 Balls, 1 Heavier, 2 Weighings

Nine identical-looking balls contain exactly one heavier ball. Using a balance scale and at most two weighings, identify the heavy ball.

On this page

    Puzzle

    Difficulty: Easy · Puzzle 1 of 6 · Topic: Classic Brain Teasers

    Nine identical-looking balls contain exactly one heavier ball. Using a balance scale and at most two weighings, identify the heavy ball.

    Hint

    First weighing should split candidates into three equal groups.

    Step-by-step solution

    Diagram
    1) Split into groups A, B, C with 3 balls each. Weigh A vs B.
    2) If A or B is heavier, heavy ball is inside that heavier trio. If equal, heavy ball is in C.
    3) Take the identified trio and weigh one ball vs one ball.
    4) If one side is heavier, that ball is the answer; if equal, the unweighed ball is heavier.
    5) Why two weighings are enough: each weighing has 3 outcomes (left heavy, right heavy, equal), so 3^2 = 9 distinguishable cases.

    Answer

    Answer: Use a 3-3-3 split, then a 1-vs-1 inside the identified trio; two weighings always isolate the heavy ball.

    Why candidates get it wrong

    Treating it like binary search; a balance gives ternary information, not binary.

    Interviewer follow-up

    If one ball could be either heavier or lighter among 12 balls, how many weighings are needed?

    Related topics

    • Back to Classic Brain Teasers

    • Logic & Aptitude Puzzles section

    Previous

    155 / 210

    Next: 2 Eggs and 100 Floors

    Up next

    Up next2 Eggs and 100 Floors

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Burning Ropes to Measure 45 Minutes
    • Measure 4 Liters with 3L and 5L Jugs
    • Bridge and Torch (1, 2, 7, 10 Minutes)