Ad
  • Custom User Avatar

    If you have two different numbers, both numbers cannot be smallest at the same time.

    This problem in description allows ambiguous answers.
    If it said that i have to be smaller than j whenever it's possible, then it would be OK.

  • Default User Avatar

    The difficulty is not the same in all languages...

  • Default User Avatar

    This is a great Kata.
    I took so much time to finish this, trying to avoid nested loops.
    But then the top answers are all nested loops! This looks weird.
    Do we have any performance metrics to pass too?
    Thanks anyway. :)

  • Custom User Avatar

    Look closely, the expected result is indeed smaller.

  • Default User Avatar

    You must have i and j smallest so with your example the good answer is only [19, 0, 1].

  • Default User Avatar

    It allows more than one answer: e.g. 91 to [19, 0, 1] and [19, 1, 0]. Also there can be more than 1 answer when two same digits are in row. This breaks verification to the point "what author assummed".