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

AboutRoadmapCareersInternshipsFAQContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • Study Route: One Week Before the Interview
  • Study Route: Two Weeks
  • Study Route: Four Weeks (Full Course)4
  • 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
  • UVM Testbench Puzzles25
  • Clock, Reset & CDC Puzzles25
  • Bus and Interface Protocol Puzzles25
  • Interview Prep: Puzzle Rounds7
  • DV Puzzle Cheatsheet
Loading lesson

←Classic Brain Teasers
  1. Topics
  2. DV Interview Puzzles
  3. Logic & Aptitude Puzzles
  4. Classic Brain Teasers
  5. Burning Ropes to Measure 45 Minutes
On this page

    VLSI DV Interview PuzzlesAll levels

    Burning Ropes to Measure 45 Minutes

    You have two ropes. Each rope takes exactly 60 minutes to burn, but burns non-uniformly. Measure exactly 45 minutes.

    Puzzle

    Difficulty: Medium · Puzzle 3 of 6 · Topic: Classic Brain Teasers

    You have two ropes. Each rope takes exactly 60 minutes to burn, but burns non-uniformly. Measure exactly 45 minutes.

    Hint

    Lighting both ends changes remaining burn time predictably.

    Step-by-step solution

    Diagram
    1) Light rope A at both ends and rope B at one end at time t=0.
    2) Rope A finishes in exactly 30 minutes (both ends lit).
    3) At t=30, rope B has some length left, but that remainder would take exactly 30 more minutes from one end.
    4) Light the other end of rope B at t=30; now remaining part burns in 15 minutes.
    5) Total elapsed time is 30 + 15 = 45 minutes.

    Answer

    Answer: Light A from both ends and B from one end; when A finishes, light B's other end and wait until B finishes: 45 minutes total.

    How this was checked

    Checked by running a model of the rule in a Python model. A computational check: an exact-fraction event simulation over 300 random non-uniform burn profiles shows rope A always ends at 30 minutes and rope B at 45, so the 15-minute gap also always holds.

    Why candidates get it wrong

    Thinking the first rope burning 'half' means half its length; non-uniform ropes break length reasoning but not time reasoning: a flame always consumes 1 minute of burn-time per minute, two flames consume 2.

    Interviewer follow-up

    How would you measure exactly 15 minutes with the same two ropes? Model answer: run the same procedure and time the interval between two events. Light A at both ends and B at one end at t=0; A burns out at 30 min, at that moment light B's other end; B burns out 15 minutes later. The 15 minutes are the gap between A finishing and B finishing (the 45-minute mark is the second event).

    Say it out loud

    The key is that burn time is what I can trust, not length, because the ropes burn non-uniformly. I light rope A at both ends and rope B at one end at the same moment. Rope A burns out in exactly 30 minutes, and at that instant rope B has exactly 30 minutes of burn left. I light B's other end then, so the rest burns in 15 minutes, and the total is 45 minutes. The trap is reasoning about half the length, which fails for non-uniform ropes.

    Related topics

    • Back to Classic Brain Teasers

    • Logic & Aptitude Puzzles section

    Previous

    163 / 293

    Next: Measure 4 Liters with 3L and 5L Jugs

    Up next

    Up nextMeasure 4 Liters with 3L and 5L Jugs

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • 9 Balls, 1 Heavier, 2 Weighings
    • Bridge and Torch (1, 2, 7, 10 Minutes)
    • 100 Prisoners and One Light Switch