Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Number of Visible People in a Queue
Bookmark
Input
Example 1
Example 2
Example 3
Custom
heights
=
[10, 6, 8, 5, 11, 9]
heights
10
0
6
1
8
2
5
3
11
4
9
5
0
0
0
0
0
0
result
stack
algo
master
.
io
Step:
Start of algorithm
0 / 32
Input
Example 1
Example 2
Example 3
Custom
heights
=
[10, 6, 8, 5, 11, 9]
0 / 32
heights
10
0
6
1
8
2
5
3
11
4
9
5
0
0
0
0
0
0
result
stack
algo
master
.
io
Step:
Start of algorithm