7 kyu
Matrix Addition of Elements
1,220S!D
Loading description...
Matrix
Fundamentals
Arrays
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.
C Translation
A minor typo in the description:
- Method should take an input 2-Dimen[S]ional Array.
By naming convention the Java method should be called
sumOfElements
instead ofSumOfElements
done! Any more changes needed?
This comment has been hidden.
Made the changes. Please accept the Kata thanks.:)
maybe make it a bit more fun, by saying the method should return the sum of squares of the sums of all rows.
like this for example : given 2D array { {1,2}, {5,4,1}, {5} } Then the method should return sum = (3²) + (10²) + (5²)
maybe you can create a new one :) and not under rate the kata for your own reasons.
I take nothing away from the kata nor do i under rate it. It was just a constructive suggestion.
Nice Kata.. i love one liners :)
I'm glad you took my random test case template from the other kata. :) Though there was no reason to use print this time, you don't actually print the matrix.
You might get output buffer issues if you print too much on this platform and you might find the occasional (annoying) scold by users who will tell you "I can print parameters myself"...
lol true! damn man im so bad with these test cases. Changes done. Ok so.. I will be making new katas and maybe you do the test cases thing :) Thanks lol.