7 kyu
Training JS #30: methods of arrayObject---reduce() and reduceRight()
1,827 of 1,828myjinxin2015
Loading description...
Fundamentals
Tutorials
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I think this is an excellent kata, I loved it. The explanation with the examples is outstanding, I learned very much, so thank you! Just a remark though: the first test seems to be incorrect, I had to change it manually, then all tests passed (including all random ones). Thanks again, I had a great time with this one!
Just missing some info in the Details for the second two examples
tailAndHead([1,2,3,4,5]) should return 945 tailAndHead([111,2345,66,78,900]) should return WHAT? tailAndHead([35456,782,569,2454,875]) should return WHAT?
oops~My fault. just fixed. thanks for your feedback!
I see this is the right test:
tailAndHead([1,2,3,4,5]) should return 945
Perhaps you forgot to correct the description? )
What is it that should be corrected? I see this in the description: