I applied binary search with a recursive checking routine,But i keep getting tle with that.But when i applied iterative checking function i got accepted.
I applied binary search with a recursive checking routine,But i keep getting tle with that.But when i applied iterative checking function i got accepted.