Ad
  • Default User Avatar

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

  • Default User Avatar

    many of them are not in order.
    ex: [50, 19, 19], [44, 17, 15], [4, 54, 5], [33, 11, 24], [69, 11, 15], [77, 12, 27], [35, 39, 13], [90, 44, 18], [31, 8,22], [22, 30, 7], [94, 16, 25], [84, 37, 18], [84, 19, 23], [9, 45, 21], [61, 18, 9], [93, 50, 25], [10, 21, 17], [65, 26, 3], [39, 31, 6] ]

    as for the description, it says
    Note: c will always be the largest value in the array, whereas a and b can be either of the 2 remaining values.

  • Custom User Avatar

    Further ex. arrays (from python):

    [3, 4, 5], [5, 12, 13], [6, 8, 10], [7, 24, 25], ...
    

    In sorted order.

    And yes, I mean to pass e.g. [3, 5, 4] instead of [3, 4, 5]. But then the java version should be also updated, along with the description that currently says:

    Note: c will always be the largest value in the array...

    Cheers

  • Default User Avatar

    ex arrays:
    [69, 11, 15], [77, 12, 27],[12, 16, 20]

  • Default User Avatar

    what do you mean by random order. do you mean that the a,b, and c in the array are in order from smallest to largest?
    If this is what you mean, then yes, it is in a random order.

  • Custom User Avatar

    The python version can be easily updated to provide the integers in random order (just shuffle the array before passing it on).

    I can't help with java, unfortunately (but it looks messy, too...)

  • Default User Avatar

    the numbers were in random order when I wrote the kata, but someone edited it out.
    I have now updated the instructions.

  • Custom User Avatar

    I agree, this could be a bit more challenging - but still simple enough - if you provide the integers in a random order; and also agree that the return should be a boolean.

    Although these should be "suggestions", not "issues".