Please help me understand what is my mistake in this particular code.
Piyush and Magical Park
Consider:
4 4 5 10
. . . .
. # . .
* * * *
* # * *
Expected Output:
No
Your Output:
Yes
16
As per problem statement at every point strength S should be greater than or equal to K.So you need to check this always. You can refer this https://ide.codingblocks.com/s/331430
There must be hint video on this. Refer that and verify your approach
1 Like
Thank you! Got my error!
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.