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.
I admit, some times this code was not passing the random tests... but then it passed 🤷♂️
So I challenge you to do not repeat the logic. I mean, write
if else
only once.nice use of iterations, that's sweet
this
Testing fib(-1239370)
is toughthat's so fucking clever, you ever needed to implement anything
hardcore
exactly
That's the definition of "clever"
This comment is hidden because it contains spoiler information about the solution
I later found it out. Thanks anyway
The progress can't go any higher than 100.
e.g.: if progress is 70 and user gains 50 new points, total would be 120. 100 are removed to increase rank and user ends up with 20 points.
Challenge says explicitly there's no rank 0. It should jump from -1 to 1, but yet the tests fail as follow:
After applying rank of 8 expected:<0> but was:<1>
¯_(ツ)_/¯
what?
indeed, it's transversing the whole 3 times for each pair of brackets
Fair. I could try to receive a dynamic list, check its size, and just then try to cast to a string list.
Loading more items...