Doubt in question HISTOGRAM

the heigth can be given in any order or any particular order.
if in any order then can we use apply sort the apply stack or queue.

@Adhyayan,
Height can be in any order. And you need to use stack.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.