Time Needed to Buy Tickets at Twitter
Easy72.1% acceptance
This problem has 100.0% frequency at Twitter.
Problem Description
There are `n` people in a line queuing to buy tickets, where the `0th` person is at the **front** of the line and the `(n - 1)th` person is at the **back** of the line. You are given a **0-indexed** integer array `tickets` of length `n` where the number of tickets that the `ith` person would like t...
Read full problem and hintsTopics
Also asked at 7 companies
More Twitter Questions
Trapping Rain WaterHardMultiply StringsMediumMerge IntervalsMediumPascal's TriangleEasyWord Break IIHard
View all Twitter questions