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.
:o
Somewhat true, but to add to that... the 0 acts as a starting number, ensuring reduce behaves consistently. It prevents unintended type coercion and avoids errors when used on an empty array. So, while the 0 is optional if you are 100% sure the array is non-empty and contains only numbers, in all other cases, it's a good practice to include it.
Mad late, but hopefully helpful to future users: 0 is the initial value in the .reduce() method. As imaNami above said - it's totally optional and the code will still work without it.
It won't be about cuboids anymore if it has more than 3 elements. lol
Thanks for the solution. I get to know about the reduce() function for the first time from your code.
Daaamn.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your points are not included in the array of your class's points. Do not forget them when calculating the average score!
You didn't take into account the length of your points
why?
lol, wont to start braind xD
chatgpt (not to be offensive)
My brain exploded when I saw how easy your solution looked lol
This comment is hidden because it contains spoiler information about the solution
no @imaNami brother, there was a note said "Your points are not included in the array of your class's points. Do not forget them when calculating the average score!
". so you have to add it separately.
Loading more items...