Ad
  • Default User Avatar

    Hi devagx,

    How did you resolve the issue?

  • Custom User Avatar
  • Custom User Avatar

    Not a kata issue, and those are several input values together, please read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution

    import static org.junit.Assert.*;
    import java.util.ArrayList;
    import org.junit.Test;
    
    
    public class KataTest {
        @Test
        public void test() {
            assertEquals(3,Kata.findEvenIndex(new int[] {1,2,3,4,3,2,1}));        #1st test
            assertEquals(1,Kata.findEvenIndex(new int[] {1,100,50,-51,1,1}));     #2nd test  
            assertEquals(-1,Kata.findEvenIndex(new int[] {1,2,3,4,5,6}));         #3rd test
            ...
    

    Java Completions 8665

  • 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