trying to print vector of all areas getting wrong output
Help in debugging
What problem are you facing?
please run and see the code the area is not gettin calculated properly
Is your final answer correct ? Which test case have you checked where your solution has given wrong output?
not able to solve please help in correection
You are not considering the case where your stack is full even after iterating till the end.
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.