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.
Thanks for the reply! I've tried using
unshift
, it works just the same but it times out. I am not really too familiar with performances in terms of array methods, or why should one be more efficient than the other. Also, there have been several katas that I couldn't complete because of this problem.I would really like to find out once for all what would make a simple code like this so much more efficient!
This comment is hidden because it contains spoiler information about the solution
Chapeau. Fixed, thanks.
Thanks.
There was an issue with
strings
, now fixed. The'14.00'
in the array above that you mentioned was supposed to be anint
and is to be included in the count.So it's
[ 164, 100, '14.00', 112, 50 ]
, whose result is10427
.Thanks for pointing out, it should be fixed now.
All approved now. I thought I sorted them already. Thank you.
thought exactly the same mate
In the JS version, it says to return
-1
if the nth small integer doesn't exist, but in the sample tests it's tested againstnull
.Are you telling me the bible is a good book?
One of the test shows
" should handle "the good book" Expected: 'BbeehHilloTy'
. I think that's for"The Holy Bible"
, isn't it?Thanks, I had only filtered the first dash. Easy fix!
I actually never knew I could the input on Codewars. Another easy fix.
Great kata, thanks for your help!!
Hi! I absolutely loved this kata, it challenged me greatly!
My solution fails only on two birds, expected results are
['DEJU', 'RBWO', 'NRWS']
for which I get'DAJU', 'REWO', 'NRSW'
.I tested my code with several random combinations of names... maybe an issue?
If not, could I have the "real" names of these birds so that I can check it out, or would this be considered "cheating"? :)
thank you!
accepted, thanks mate!
Translation approved, thanks!
Translation approved, thanks!
Loading more items...