Problem in the code

what is wrong in my code i just copied the code taught but it is showing TLE

hi @himanshuanand729,
sort the array before you do binary search and always remember this point

updated and commented

Thanks I understood my errors