time complexity of this code is logn acc to me but it doesnt work for 10^6 or more on compiler…why>>
Code not working for 10^6 or more
it shows tle on submission …i dont know why for 10^6 or more …
i have done the logic on my own…
thsi is my latest submission shows tle for only 1 casee…plz look into this and it works for 10^9 as well…
now plz tell me tha ans …its been already 1 day… reply fast…
When will u reply …why can’t u just clear the doubt