7 kyu

Matrix Addition of Elements

1,220S!D
Description
Loading description...
Matrix
Fundamentals
Arrays
Mathematics
  • Please sign in or sign up to leave a comment.
  • ParanoidUser Avatar

    A minor typo in the description: - Method should take an input 2-Dimen[S]ional Array.

  • dinglemouse Avatar

    By naming convention the Java method should be called sumOfElements instead of SumOfElements

  • dinglemouse Avatar

    This comment has been hidden.

    • S!D Avatar

      Made the changes. Please accept the Kata thanks.:)

      Suggestion marked resolved by S!D 8 years ago
  • Ndumiso Avatar

    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²)

    • S!D Avatar

      maybe you can create a new one :) and not under rate the kata for your own reasons.

      Issue marked resolved by S!D 8 years ago
    • Ndumiso Avatar

      I take nothing away from the kata nor do i under rate it. It was just a constructive suggestion.

  • Tandyman Avatar

    Nice Kata.. i love one liners :)

  • mmalkavian Avatar

    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"...

    • S!D Avatar

      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.

      Suggestion marked resolved by S!D 8 years ago