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.
Really interesting challenge, congratulations for the kata.
You are correct i was reading it wrong, now test are passing, thanks!
Still , the description should have an example on odd array
you are reading the error log wrong
you returned
[ [ 59, 71, 9, 100, 8 ], [ 8, 71, 100 ], [ 71 ] ]
, while the answer is (as you calculated)[ [ 59, 71, 9, 100, 8 ], [ 8, 71, 100 ], [ 100, 71 ], [ 100 ] ]
not a kata issue
testing for [59,71,9,100,8]
expected [ [ 59, 71, 9, 100, 8 ], [ 8, 71, 100 ], [ 71 ] ]
to equal [ [ 59, 71, 9, 100, 8 ], [ 8, 71, 100 ], [ 100, 71 ], [ 100 ] ]
I don't fully get it, according to the description
'If the number of contestants is odd, the last one of the current array becomes the first of the next round.'
So after the first round we end up with [ 8, 71, 100 ] which is odd, so the calculation should be for 8 && 71 , moving 100 to the next round
But your test shows in the next round only [ 71 ] instead [ 100, 71 ], and later the answer [ 100 ].
Also description should have an example with odd array
Approved
This kata was fun. Thank you. :)
I wish all katas were explained in this manner instead of long stories in description.
This comment is hidden because it contains spoiler information about the solution
In my opinion, you have it wrong
expected [ [ 29,76,92,72,73,65,55,45,79,41,55,70,89,77,85,23,27,52,73,63,14,47,72,66,79,89,9,18,41,29,25,96,44,33,87,90 ],
[ 76, 92, 73, 55, 79, 70, 89, 85, 52, 73, 47, 72, 89, 18, 41, 96, 44, 90 ],
[ 92, 73, 79, 89, 73, 72, 89, 96, 90 ],
YOU[ 90, 92, 89, 73, 96 ],
YOU[ 90, 92, 89 ],
[ 90, 92 ],
[ 92 ] ]
to deeply equal [ [ 29,76,92,72,73,65,55,45,79,41,55,70,89,77,85,23,27,52,73,63,14,47,72,66,79,89,9,18,41,29,25,96,44,33,87,90 ],
[ 76, 92, 73, 55, 79, 70, 89, 85, 52, 73, 47, 72, 89, 18, 41, 96, 44, 90 ],
[ 92, 73, 79, 89, 73, 72, 89, 96, 90 ],
ME[ 90, 92, 89, 73, 96 ],
ME[ 96, 92, 89 ],
[ 89, 96 ],
[ 96 ] ]
Should be fixed ;-)
You probably have mutated the input.
I love the way that you have to return two-dimensional array where all the elimination steps are included, good job and very fun kata.
Approved.
I am not sure that the logic in the random tests in python 3.8 are working as expected. I am pretty sure that all outputs should have the input as the first item in the return list. However, on occasion it is saying that an empty list should be the first item in the return list.
C++ translation kumited
C# Translation.
Loading more items...