I_need_sleep's blog

By I_need_sleep, history, 2 months ago, In English

Can anyone help why I am getting TLE verdict for my nlogn solution to 1282B2 - K for the Price of One (Hard Version) . My submission 174890687

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

You made a for loop inside the binary search part, that doesn't seem like $$$O(log n)$$$ to me