Piyush and magical park problem

Please check the code and let me know what I have done wrong.


2 test cases are not getting passed.

Save your code on ide.codingblocks.com and share its link.

As per problem statement at every point strength S should be greater than or equal to K not 0.
you can refer this https://ide.codingblocks.com/s/263993

1 Like