Ad
  • Custom User Avatar

    Why is this not done for arrays with variable lengths? First, odd and even arrays have different characteristics; second, only requiring to solve for 1 length instead of all arrays in general makes the problem very boring, and becomes a puzzle rather than a kata.

  • Custom User Avatar

    The tests are unnecessarily obtuse: it doesn't even show what the actual array length or the exchange end result is when the tests fails, which is unacceptable.