Available question text
Given a list tickets[] and index k, compute how many seconds until person k finishes in a round-robin queue where each second the front buys one ticket and (if they still need more) goes to the back. The core challenge is counting how many times each person will be served before k completes (i.e., summing each person's contributions limited by k's remaining tickets and their position).
Related questions
Continue with questions that share topics or the same question type.
- Best Time to Buy and Sell Stock
Coding · Array · Dynamic Programming
- Best Time to Buy and Sell Stock II
Coding · Array · Dynamic Programming · Greedy
- Best Time to Buy and Sell Stock III
Coding
- Best Time to Buy and Sell Stock IV
Coding
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 2073. Time Needed to Buy Tickets
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source