similar to my solution but i removed 0 values with each pass and edit the list in place. Ultimately this solution is better for performance. However min-heap solutions are the best
Swear this is a trick question to see if people remember order of operations
Also to add, the statement before and after and provide either a true or false(Boolean) output, so when returned you get True or False
This comment is hidden because it contains spoiler information about the solution
Time complexity is not factored into the challenge
Forget that Return itself always evaluates an expression
Whats the difference with formatting the variable as f"{40-mm}" and converting it to a string performance wise
Wizardry
Insane
Nice
not else!
No, that's what the array_keys($split) is for.
array_keys($split)
Does using $i as a seccondary variable in a function (function($item, $i)) automatically let array_map know this is referring to the array key?
Loading collection data...
similar to my solution but i removed 0 values with each pass and edit the list in place. Ultimately this solution is better for performance. However min-heap solutions are the best
Swear this is a trick question to see if people remember order of operations
Also to add, the statement before and after and provide either a true or false(Boolean) output, so when returned you get True or False
This comment is hidden because it contains spoiler information about the solution
Time complexity is not factored into the challenge
Forget that Return itself always evaluates an expression
This comment is hidden because it contains spoiler information about the solution
Whats the difference with formatting the variable as f"{40-mm}" and converting it to a string performance wise
Wizardry
This comment is hidden because it contains spoiler information about the solution
Insane
Nice
not else!
No, that's what the
array_keys($split)
is for.Does using $i as a seccondary variable in a function (function($item, $i)) automatically let array_map know this is referring to the array key?
Loading more items...