Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
I dont remember old code.. is ok, thank you :D
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...
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
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?
Do i need to know the window size??
Time: 5017ms Passed: 6 Failed: 4... hmmm... just how? :D
hahah, I just made a reset, same code... and it passed :D
-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....