• + 0 comments

    When I am running the program with the given test cases, I am getting an error in the main method rather than the solve method. When i run custom inputs and put in inputs like:

    5 1 2 3 4 5

    It always works for every value that I put inthe custom input, but gives me runtime errors with lots of test cases