Lambda Functions lead to TLE!

Revision en1, by Mr.Whitebird, 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 Mr.Whitebird 2024-04-07 18:10:59 11
en1 English Mr.Whitebird 2024-04-07 18:06:26 337 Initial revision (published)