Ad
  • Default User Avatar

    Great Kata. Even if you don't know much math it's pretty simple to solve. Just shake your brain a bit...

  • Default User Avatar

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

  • Default User Avatar

    I think my brain just committed suicide

  • Default User Avatar

    I never thought that this level of intelligence is possible!

  • Default User Avatar

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

  • Default User Avatar

    The expected outcome of all random tests is the last element of the list. That was not the case for basic tests.

    Some of the results:

    [54, 8, 8, 28, 74, 9, 73, 19, 24, 18, 60, 30, 42, 39, 17, 45, 67, 87, 77, 80, 83, 42, 60, 44, 96, 13, 66, 94, 70, 31, 20, 50, 18, 40, 70, 42, 18, 34, 23, 97, 40, 76, 101, 34, 102, 65, 40, 78, 11, 23, 67, 34, 25, 55, 43, 27, 33, 35, 54, 50, 77]

    [102, 78, 77] should equal [77]

    [35, 38, 44, 93, 103, 76, 47, 46, 65, 36, 57, 103, 88, 56, 23, 16, 26]

    [103, 88, 56, 26] should equal [26]

    [49, 62, 73, 20, 97, 15, 84, 24, 72, 53, 105, 92, 78, 74, 13, 37, 78, 66, 54, 41, 27, 49, 17, 51]

    [105, 92, 78, 66, 54, 51] should equal [51]

    please fix

  • Default User Avatar

    I spent an entire day trying to figure this kata out just because I failed to notice that the number of asterisks on each line was odd.