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.
it seems so, failure in the test cases.
the solution should not have passed.
The tests weren't functional, so anything passed.
I used this solution just to see what I could learn, and was surprised to see it work.
Wouldn't a value of 4 for size give an answer of 10101010? Where 1010 would be expected.
I think this might not work according to documentation.
In your code if num == 2, result is "1010"
Expected is "10"
This comment is hidden because it contains spoiler information about the solution
Really cool solution
OK, good!
Task is quite easy but i tottaly forgot Java specially "import java.util.function.BiFunction;"
Ok o will try to import and see
Please Fixed tests or Random tests? Do you import all what is needed? Some guys passed the katas in Java without problem. I just tried it and it worked fine.
I recive 4 errors after i compile code. This errors are connected with func tiona that was providet in Java. Could you help pls.
/Operarray.java:24: error: illegal start of type
public static long[] operArray(... operator, long[] arr, long init) {
^
/Operarray.java:24: error: ')' expected
public static long[] operArray(... operator, long[] arr, long init) {
^
/Operarray.java:24: error: expected
public static long[] operArray(... operator, long[] arr, long init) {
^
/Operarray.java:24: error: expected
public static long[] operArray(... operator, long[] arr, long init) {
^
4 errors