why is lambda function so slow in this case?

Revision en1, by Sederam, 2024-07-27 07:41:40

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?

Tags lambda expressions, time limit exceeded, help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Sederam 2024-07-27 07:41:40 427 Initial revision (published)