Ad
  • Custom User Avatar
  • Custom User Avatar

    im having issues with hidden test case in java. Anyone getting same? test case is below. It says my code returns 0 running the kata here, but i run my code in my IDE and its returning -1 which the Kata expects.
    1,
    2,
    3,
    4,
    3,
    2,
    1,
    1,
    100,
    50,
    -51,
    1,
    1,
    1,
    2,
    3,
    4,
    5,
    6,
    20,
    10,
    30,
    10,
    10,
    15,
    35,
    -8505,
    -5130,
    1926,
    -9026,
    2824,
    1774,
    -1490,
    -9084,
    -9696,
    23094,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    9,
    8,
    7,
    6,
    5,
    4,
    8,
    8