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.
Approved, thanks!
C Translation
I was confused by the information at first, but in the end it was just easy, no much complexities. I think, it would be enough to write that it is first necessary to make the sum of numbers of the same values and return the highest of them as a result.
Approved, thanks!
Haskell translation
Also, I've cleaned up the description a bit.
Result can't be
[[2,2,1,3]]
. In that case,3
comes after2
(it doesn't matter if they are adjacent or not), and so it doesn't break the second rule of[2,3]
.Any alternatives then?
Currently there is no other lnguages, and when they are added, the "
None
/nil
/null
depending on language" is one of the worse choices.When this kata is translated to other languages, the return for parralel lines should be "None/nil/null (depending on the language)".
Changed
sum
in description and initial code tototal
In Python, it's not recommended to use the variable name "sum" because it is also the name of a built-in function sum(). If you use "sum" as a variable name, it may override the built-in sum() function, making it unavailable for use within the same scope. For example:
Scala translation
Lol well played to you I thought you had the win
Loading more items...