I can not pass several testcase. need ur help
@premang this is a totally wrong solution you have to use stacks and you have to find the largest water that can be stored so basically you cannot use the array you have to see the previous conditions as well when you pop out the elements.
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.