i have seen many users using BINARY SEARCH in problem NUMGUESS.. why didn't anybody uses rand function.. is it giving TLE ?
Not necessarily, but you want to be able to always give the correct answer in a reasonable amount of time. How would rand improve on the operational complexity of the solution?
that i too doubted