Time-limit error

Why this time limit error used to appear ?
What i am doing wrong ?

Thanks!

save your code on ide.codingblocks.com and share the link here

https://ide.codingblocks.com/s/141642 Kindly, go through it!

please provide code in java language…

Java written code : https://ide.codingblocks.com/s/142206

your doubt is related to binarysearch but you have posted code of some other ques…please mention in which ques or code you have doubt