Aggressive cows passing only 1/5 test case


is my code id please tell the mistake.
not able to think any test case which is giving wrong answer

refer this code , u have made a complex one,
u`ll understand this quickly and fetches u correct answer

ok thank u mam, i was trying to do it with recurssion .

1 Like