Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Time Needed to Buy Tickets
Bookmark
Input
Standard
Example 2
Larger
Custom
tickets
=
[2, 3, 2]
,
k
=
2
2
0
3
1
2
2
k
time = 0
algo
master
.
io
Step:
Start: Calculate time for person 2 to buy 2 ticket(s)
0 / 10
Input
Standard
Example 2
Larger
Custom
tickets
=
[2, 3, 2]
,
k
=
2
0 / 10
2
0
3
1
2
2
k
time = 0
algo
master
.
io
Step:
Start: Calculate time for person 2 to buy 2 ticket(s)