AlgoMaster Logo

Number of Visible People in a Queue

heights=[10, 6, 8, 5, 11, 9]
0 / 23
algomaster.io
Step:Brute force: for each person, walk right and count who they can see.