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.
This comment is hidden because it contains spoiler information about the solution
HAHA
For Java there is an error that I keep getting:
error: unmappable character for encoding ASCII
private static final String SYMBOLS = "|!"??$%&/()=?^'[]{}#@+-*/<>,.;:_ 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\n\t~`";
My solution should work, and even matches the top solution too. Problem in tests?
Great kata. Feels more more challenging than 5kyu, however.
For Java, I was a bit frustrated when I spent 30 minutes trying to figure out what was wrong with the early version of my code. Instead, it seems to me that the basitTests are not consistent with the randomTests. In basicTtests, the inputs are in the format of {1, 2, 5, 7}, but in the randomTests, author uses 0s as place holders in the format of {1, 2, 0, 0, 5, 0, 7}. This directly contradicts with this bit in the description which says "you can assume every number in the sequence after the first index will be greated than the previous ..". Could be a fun kata, if description was more consistent with its tests.
Minor problem with the test case of (5000, 6) where 2004 and 2010 are both of equal distance from the mean. Other than that, a fun kata :) Thanks!
LOL
This comment is hidden because it contains spoiler information about the solution
Hi. Could you please provide some explanation to your solution? I'm trying to figure out the best solution for this kata and this solution has caught my interest. Thanks! :)