Status: IN
`time_to_buy_tickets` replaces an O(n·max(tickets)) queue simulation with an O(n) single-pass formula that computes each person's contribution based on their position relative to index k.
Source: entries/2026/06/06/time-needed-to-buy-tickets-solution.md