Ad
  • Default User Avatar

    Really interesting challenge, congratulations for the kata.

  • Custom User Avatar

    You are correct i was reading it wrong, now test are passing, thanks!

    Still , the description should have an example on odd array

  • Custom User Avatar

    you are reading the error log wrong

    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 ] ]

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    Approved

  • Default User Avatar

    This kata was fun. Thank you. :)

    I wish all katas were explained in this manner instead of long stories in description.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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 ] ]

  • Custom User Avatar

    Should be fixed ;-)

  • Custom User Avatar

    You probably have mutated the input.

  • Custom User Avatar

    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.

  • Custom User Avatar
  • Default User Avatar

    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.

    given this input [91, 49, 59, 21]
    I am getting this error:
    [[91, 49, 59, 21], [91, 59], [91]] should equal [[], [91, 59], [91]]
    
  • Custom User Avatar
  • Custom User Avatar
  • Loading more items...