Help rahul,i am getting no output
@lukharshiv,
Put:
int mid = (s + e) / 2;
Inside the while loop. Because at every iteration you need to update mid as well
@lukharshiv,
Put:
int mid = (s + e) / 2;
Inside the while loop. Because at every iteration you need to update mid as well