hpotter97762's blog

By hpotter97762, history, 7 years ago, In English

Here is the problem this

And this is my solution this

According to my analysis, the solution should be O( q*log(m-n)+m ). So, with n<=10000, I am not able to find why I am getting TLE or where is the code going in infinite loop...

Any help would be appreciated.... Thanks in advance!!

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it