Please check the code and let me know what I have done wrong.
2 test cases are not getting passed.
Piyush and magical park problem
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