it is giving TLE error infact i have solved in o(logn)
help me to modify my code or tell me where i am wrong
First and last index of target
@amaaanahmedkhan987 use long long int datatype, it will run fine. RIght now the large range of values may cause integer overflow and the values will be disrupted and it might go in an infinite loop.https://ide.codingblocks.com/s/287096
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.