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.
thats very weird
add 0 or [] to reduce, (sum, 0) for example. this Excercise is fundamentally wrong because it returns purposefully zero when given and empty array so, don't be upset about this challenge.
This comment is hidden because it contains spoiler information about the solution
(python)
In my case I am returning
[positive count, negative sum]
but I do not understand some failed tests I.E:❌
[10, -50] should equal [8, -50]
How is it returning [8, -50] where as I understand it sould return [1, -50]
P.D: My code is not finished nor right. Just asking about this failed test 😅
Can someone explain this for me? Thanks!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
elaborate plese it is stupid to make an empty assertion if you are trying to impress people with no explanation about
this is not javascript (jk)
Set the initial value of your reduce to 0
This comment is hidden because it contains spoiler information about the solution
Ok then is my fault to get string manipulation with string prototypes on the beginners lv.
Apologize to all katas like this.
I won't forget I need to take a 400 pages JS book and eat that shit before trying to finish any beginner kata by myself.
For loops definitely not an ideal first experience, a fundamental experience yea, and it's not the only challenge available on that level at the same time.
That's not a kata issue. Kata's rank is the same for all languages and it's not up to the kata's author to set.
This comment is hidden because it contains spoiler information about the solution
Thanks you. But I do not understand why 0 at the end is taken as the initial value or why and empty array causes an error you wont pass with "type checking" number == []
Loading more items...