Draft
sums of inner lists
3 of 5firelabs-io
Loading description...
Arrays
Algorithms
Mathematics
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 kinda don't understand the question. it's worded weirdly, but i can kind of guess what it wants me to do.
and the maths seems to be off. for the input [[1, 5, 7, 1], [1, 7], [6], [], [7, 1, 8, 2, 9]], the output should be [15, 13, 15, 3, 9]. however, 1+5+7+1 = 14, not 15. 1+7 is clearly not equal to 13, 6 != 15, etc. the question is quite vague, so i don't really know how to return the output.
Check the based on part. It's the first element of the first inner list plus the first element of the second inner list, and so on.
ohhhh that makes so much more sense now. so just add up all the entries of the inner lists that have the same index (so list1[0] is added to list2[0] and so on)? am i understanding this right?
Yes.
I unpublished this kata because it lacks random tests and the JavaScript version is for a different task.
Please read the following guide for authoring kata in Python.
how i make random tests?
Read the guide. It contains a section about random tests and examples of random tests.