AlgoMaster Logo

Time Needed to Buy Tickets

tickets=[2, 3, 2],k=2
0 / 10
k232k's rounds = 2012each person buys min(their tickets, k's rounds) before k is donetime = 0
algomaster.io
Step:Start: how long until person 2 finishes buying all 2 of their ticket(s)?