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.
What is better: to iterate over integers up to square root, or over integers whose square is not bigger than n?
Just uses recursion instead of a loop. Continues until there are no more
#
present (idx < 0)how this works?
Please consider this is used in a real codebase:
The above outputs
[]
instead of[2,3,5]
, because the arrayfoo
was modified from inside thedistributionOf
function. Functions shouldn't mutate their parameters.This comment is hidden because it contains spoiler information about the solution
what's up~ bro hhhh
The Spider has found you!!!
nice! Just one swipe through...efficient as usual
Thanks for reporting. I modified the random tests. Regards, suic
Thanks for reporting this. I modified the random tests. Regards, suic
python is incredible...
python
python
Hi, in which language? Thanks, suic
Shouldn't the fact that the double spaces and the ones at beginning/ end of the string must disappear from the solution? or at least include these examples in the test cases?