Available question text
Simulate a priority-driven scheduling problem where k workers, each with times to cross right, pick, cross left, and put, must move n boxes across a single-occupancy bridge; return the time when the last box-carrying worker reaches the left side. The twist is that when the bridge is free you must always choose the least-efficient eligible worker (by left+right time, tie-broken by index) from the right side first, otherwise from the left, and never dispatch more than n workers to fetch boxes.
Related questions
Continue with questions that share topics or the same question type.
- Time Taken to Cross the Door
Coding
- 0/1 Knapsack Problem with Time Complexity Optimization
Coding
- Aggregate Two Time Series
Coding · Array · Two Pointers
- Amount of Time for Binary Tree to Be Infected
Coding · Binary Tree · Breadth-First Search · Depth-First Search
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2532. Time to Cross a Bridge
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source