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.
how does that even work
Thanks for the help
This defines the order.
This is not a 3 kyu kata for nothing. You may have to think hard.
but how do you get the order of when the numbers appear? why are the two ones not next to eachother? my code works with sequences not starting qith 0 but when they start with 0 my logic fails.
So, in
1 2 1 0 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7
, there is1
zero,2
ones,1
two,0
threes,4
fours,4
fives,4
sixes,4
sevensThe numbers I've written as digits come from the expected sequence itself; the numbers I've written as words come from the input sequence.
1 2 2 3 3 4 4 4 5 5 5 6 6 6 6 7 7 7 7
gives0
zeroes,1
one,2
twos,2
threes,3
fours .., so it's not describing itself.I dont understand the logic when given starts with 0.
0 1 2 3 4 .. (1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8) should equal (1, 2, 1, 0, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7)
Why is there two 1s and a 0 just there? what?
hell yeah