what is wrong in my code i just copied the code taught but it is showing TLE
Problem in the code
hi @himanshuanand729,
sort the array before you do binary search and always remember this point
updated and commented
Thanks I understood my errors