AlgoMaster Logo

Time Needed to Buy Tickets

tickets=[2, 3, 2],k=2
0 / 12
algomaster.io
Step:Start: run the queue until person 2 buys all 2 ticket(s).