bansalarpan4's blog

By bansalarpan4, history, 15 hours ago, In English

problem 2037D - Sharky Surfing my submission — 298878809

i check out some other submission like 291973736, i believe the time complexity is same for both but mine leads to tle. any explanation ?

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

»
15 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

I don't know but, I can give you a solution use GPT.

»
13 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

inside the forloop you are iterating in the Map, may be that is the reason.