Sederam's blog

By Sederam, history, 4 months ago, In English

for CSES Grid Path why does this get TLE but this get AC while the only difference between them is that in the first one a lambda function is used but in the second one a normal function instead? Or is there other differences that I`m missing?

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

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

You're copying S and dir by value on the lambda example.