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?↵
↵
AC: [submission:255501228]↵
↵
TLE: [submission:255500672]↵
↵
so should we always prefer global functions over lambdas then?
Lambda functions made the runtime around 7 times slower.↵
↵
What do you think this is because?↵
↵
AC: [submission:255501228]↵
↵
TLE: [submission:255500672]↵
↵
so should we always prefer global functions over lambdas then?