Can anyone pls tell me whats wrong in my code…
it shows wrong answer but i have also checked the edge cases…
You have declared K as int. In the edge case
1
100 15 5 5
K will be go of bounds.
Can anyone pls tell me whats wrong in my code…
it shows wrong answer but i have also checked the edge cases…
You have declared K as int. In the edge case
1
100 15 5 5
K will be go of bounds.