Why we are considering less tha K?

If we are asked to place cow with minimum separation of atleast K, then why we are considering separation less than K? Don’t it should be greater than K?

Hello @itismohiton,

This condition is checking for the case of less than k.
So, that if the separation becomes less than k and it is not possible to extend the separation. We will return false.

Hope, this would help.
Give a like if you are satisfied.