There are 5 people, that are standing in a line facing to the left. can see no one, while can see everyone. Starting with , each of them is asked "How many people standing before you are also taller than you are?". The replies from each of them were 0, 1, 1, 0 and 1 respectively.
Arrange these 5 people according to their height, starting with the shortest.
Note: Assume that no two people have the same height.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
A-B-C-D-E are standing in this order.
we want in ascending order, so BCAED.