Strongest fighter(stack)


why it is not passing all test cases…

@tishya_goyal The maximum size of the array can be till 10^7 but you have taken till 100005 only.
Also declare the array as global since we cant create a local variable of size > 10^6.

Please mark the doubt as resolved after submitting the problem.

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.