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.
New method signature is accepted now
static int sum(int[] array)
The rating is now 83%, cheers :)
Someone added example tests.
For the Java translation, I'd suggest to rename the method to
sum(int[] array)
to follow conventions.Java: needs random tests.
Feel like re-submitting your translation? Again, I updated the description before... Although I'm not sure it will ever come out of beta with such rating :-(
Cheers
Example tests were added to python, but not in java. Java doesn't have random tests either.
Needs some example tests.
JS translation kumited. If you wish to approve it.
; ) )
Duplicate: https://www.codewars.com/kata/find-the-gcf-of-two-numbers
https://www.codewars.com/topics/kata-best-practices
Ну ты решил не тем методом, которым требовалось. Просто скопировал из телеграма решение. Нужно решить методом остатков от деления