Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I dont remember old code.. is ok, thank you :D

  • Custom User Avatar

    Btw I think i found an error....

    int maxLength = array.length;
    int countLength = (array.length+1)/2;

    in my "for statement" it changes the value of maxLength and countLength... but here it's like initialize the variable set again going out from for statement...

  • Custom User Avatar

    expected:<[[9, 6]]> but was:<[[14, 10]]> ... it's really strange because when I run all the test on intelij idea... it shaws me right numbers...here it doesnt even pass the simple test...

    6
    6
    3

    Process finished with exit code 0

    9
    6

    Process finished with exit code 0

  • Custom User Avatar

    java.util.NoSuchElementException
    at Kata.findEvenIndex(Kata.java:57)
    at KataTest.test(KataTest.java:11)
    Completed in 27ms


    Why when i compile on intelij-idea it goes perfect here no?

  • Custom User Avatar

    Do i need to know the window size??

    Time: 5017ms Passed: 6 Failed: 4... hmmm... just how? :D

  • Custom User Avatar

    hahah, I just made a reset, same code... and it passed :D

  • Custom User Avatar

    -isystem /runner/frameworks/cpp/ error: function definition is not allowed here
    void testequal(int ans, int sol) {
    ^
    error: function definition is not allowed here
    {
    ^
    error: use of undeclared identifier 'dotest'
    dotest(1500, 5, 100, 5000,15);
    ^
    error: use of undeclared identifier 'dotest'
    dotest(1500000, 2.5, 10000, 2000000, 10);
    ^
    error: use of undeclared identifier 'dotest'
    dotest(1500000, 0.25, 1000, 2000000, 94);
    ^
    error: use of undeclared identifier 'dotest'
    dotest(1500000, 0.25, -1000, 2000000, 151);
    ^
    error: function definition is not allowed here
    {
    ^
    error: expected '}'
    }
    ^
    note: to match this '{'
    {
    ^
    8 errors generated.

    help pls....