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. Bridge and Torch (1, 2, 7, 10 Minutes)

VLSI DV Interview Puzzles · All levels

Bridge and Torch (1, 2, 7, 10 Minutes)

Four people need to cross a bridge at night with one torch. At most two cross at once; pair speed is slower person's time. Times are 1, 2, 7, 10 minutes. Minimize total time.

On this page

    Puzzle

    Difficulty: Hard · Puzzle 5 of 6 · Topic: Classic Brain Teasers

    Four people need to cross a bridge at night with one torch. At most two cross at once; pair speed is slower person's time. Times are 1, 2, 7, 10 minutes. Minimize total time.

    Hint

    Compare two strategies for moving the two slowest across.

    Step-by-step solution

    Diagram
    1) Optimal pattern uses two fastest as shuttles.
    2) Send 1 and 2 across: +2.
    3) Send 1 back: +1 (total 3).
    4) Send 7 and 10 across together: +10 (total 13).
    5) Send 2 back: +2 (total 15).
    6) Send 1 and 2 across: +2 (total 17).
    7) Alternate strategy (1 with each slow person) costs 19, so 17 is minimum.

    Answer

    Answer: Minimum total crossing time is 17 minutes.

    Why candidates get it wrong

    Greedy 'always send fastest with slowest' gives 19 and misses global optimum.

    Interviewer follow-up

    For times 1, 2, 5, 10, what is the optimal total and why?

    Related topics

    • Back to Classic Brain Teasers

    • Logic & Aptitude Puzzles section

    Previous

    159 / 210

    Next: 100 Prisoners and One Light Switch

    Up next

    Up next100 Prisoners and One Light Switch

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • 9 Balls, 1 Heavier, 2 Weighings
    • 2 Eggs and 100 Floors
    • Burning Ropes to Measure 45 Minutes