Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
OP solved it, closing
All permutations, not maximum and minimum only.
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?
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?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution