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.
fiel copia de la de arriba jajajajajaj
In javascript the float "1.0" will be printed as just 1, the last test case never will be achieved
39 => 3.9
9 => 0.9
10 => 1 XXXX
I can't figure out how the distance is being calculated :C Any tips=
oh gees, that is normal in English? I really dont know that :o, thank you!
can anyone explain this to me. I cant understand, if i got n=9
so the set is 1,2,3,4,5,6,7,8 and 9
It says, Start with the first number on the left -> ok so i start from the left taking the 1?
then remove every other number moving right until you reach the the end ..... So what? i need to remove all while i am going forward?
Please help, thx
jesus christ
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you for answering me.
[ 1, 6, 5, 10, 8, 7 ] => 18 (buy at 1,6,5 and sell all at 10)
And in this example, how i know when he buy or when he sells? its when the number get the higher and then start to decrease?
or always its 5 days buying and the 6th selling?
Could be more explainatory? I cant understand how know what we need to do.
I dont know if its because my english isnt my native's but well...
this is the best solution that i read
This comment is hidden because it contains spoiler information about the solution
x2
done, the only thing that change was the final answer is an array with a giant string inside.
Now, what about with the sample test?
Is this kata alright? I mean first of all says the return must be a string, then it says an array.
The sample test are
assert.equal(song[0], '99 bottles of beer on the wall, 99 bottles of beer.');
assert.equal(song[199], 'Go to the store and buy some more, 99 bottles of beer on the wall.');
but every line of the songs besides de 1 and 0 its "
99 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall.
" so why does this look for an uncomplete portion of the lyric line?the other thing its that "song[199]" test. Its supossed that we return just an array of 100 so we cant handle that call right?
Thank u
Loading more items...