Ad
  • Default User Avatar

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

  • Default User Avatar
  • Default User Avatar

    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?

  • Default User Avatar

    Great kata. Feels more more challenging than 5kyu, however.

  • Default User Avatar

    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.

  • Default User Avatar

    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!

  • Default User Avatar
  • Default User Avatar

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

  • Default User Avatar

    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! :)