Ad
  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    All permutations, not maximum and minimum only.

  • Default User Avatar

    I'm getting errors in the tests which on calculator I've worked out to be incorrect.
    I pass 3 of the test cases but for 76853 with an expected return of 64444, I make the average 61665

    76853 lowest permutation is 35678 and highest permutation is 87653
    35678 + 87653 = 123331 and 123331 divided by 2 = 61665 but for some reason it is expecting 64444

    Have is understoon the instructions incorrectly or is this an error?

  • Default User Avatar

    I'm having this problem as well. My test in irb doesn't come back with any problems in terms of the split or adding the numbers up. is the 9th(ot whichever that fails) test the first tie? Because the tie in the three test cases work, I'm wondering if it's an issue with the string?

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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