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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Actually, everyone just forgot about it. He can change 'classPoints.size()' to '(classPoints.size()-1)' and yourPoint will accumulate in the mean value too.
Explain?
Спасибо, очень доступное объяснение в ролике, все понятно даже не смотря на мой слабый английский
maxTruSum -> sum of three maximum unique numbers in array
For que no se escapen las letras
The algorithm correctly assumes that all numbers are either even or odd. Pretty sure all of our responses include some iteration of that same logic.
What's not clever about it?
One
"return"
is already present in the solution set up; you don't need to add more (the warning just means if you remove it and redefinesfunction...
as an arrow function without"return"
then it will not work. I don't know how to tell you more without spoiling too much of the solution. My opinion: if really you can't get it, it doesn't worth you spend too much time on this kata, it's a bit idiotic and you probably won't learn anything solving it.It is explicitly stated in the description.
yep most teams in my experience default to using them, and it's not a bad choice. know the rules so you can break them. again it's a stylist choice.
A stylistic choice. JS doesn't require semi-colons, the interpreter automatically adds them.
https://www.freecodecamp.org/news/lets-talk-about-semicolons-in-javascript-f1fe08ab4e53/
Please use a spoiler flag when you post code somewhere so that users who didn't solve the kata cannot see it (I put the flag on for you this time). Best practice are what users voted like best practice, very often they are not good practice at all. You should not pay too much attention to this (but vote for what you think is best practice, if you have some idea ;)).