Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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...