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

  • Default User Avatar

    What are you talking about?

  • 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

    I see that you figured it out. If you'd still like me to take a look at the old code, post it here.

  • 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?

  • Default User Avatar

    I am thoroughly floored. I can't see the issue with my function. Gonna sleep on this one.

    Now I'm getting the error expected 50 got 51

  • Custom User Avatar

    Do i need to know the window size??

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

  • Default User Avatar
  • Custom User Avatar

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

  • Default User Avatar

    I don't understand why you got that: 1018 guys passed the C++ kata and I just tried a few solutions that worked fine.

  • 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....