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.
Got it, thanks
The first soldier in line adopts Stan's cadence of
1
after 1 step already.How to get 1 out of 5 values in 2 steps, subtracting 1 each?
Or did I somehow misunderstand the task?
{"initial":[5,1,1],"steps":2,"stan":1,"ollie":2}
expected [ 3, 1, 1 ] to deeply equal [ 1, 1, 1 ]
Somehow I managed. It wasn't the best solution, but it worked. Thanks!
Thanks! I didn't know you could see the data there
1
101
10001
10111
1110111
Then it should be expected not M but S, shouldn't it?
11111100111111
The same situation, the signal for 2 units of time is 3 dots + three dots
Write
console.log(bits);
as the first line of your function.There are none, this is what I got when I tried to send
Basic bits decoding
expected 'I' to equal 'M'
Completed in 1ms
Multiple bits per dot handling
expected 'I' to equal 'M'
Print the input.
JS
expected 'I' to equal 'M'
I - '..'
M - '--'
???