Lambda Functions lead to TLE!

Revision en1, by Seferovic, 2024-04-07 18:06:26

The only difference between the two submissions is using a lambda function vs a global function. Lambda functions made the runtime around 7 times slower.

What do you think this is because?

255501228 255500672

so should we always prefer global functions over lambdas then?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Seferovic 2024-04-07 18:10:59 11
en1 English Seferovic 2024-04-07 18:06:26 337 Initial revision (published)