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.
Great!
nice
it's already mentioned that only valid arguements will be passed
I'm happy that my solution was the exact same as the top solution for this Kata. Came up with the solution in to time at all, I am learning lots from Codewars.
God I'm so dumb..
agreed, but in codewars, speed is most important ;)
Fixed.
P.S. Your solution works with
NATONAREPOTENETOPERANOTAN
->but fails with squares like
'XXXJXXJERXXXJGXS'
yayy i made top solution
Splendid!
IMHO best prctice than sumsum
Your also mistaken, it does include
yourPoints
.Does it pass the test? Yes. Good, that's what required.
In the Kata description: """ Your points are not included in the array of your class's points. For calculating the average point you may add your point to the given array! """
Your solution does not seem to include "your points". Also '.reduce' fails if the list is empty. '.fold()' handles that case.
This comment is hidden because it contains spoiler information about the solution
Can someone please explain why the pop method fails ?
Loading more items...