Ad
  • Custom User Avatar

    it seems so, failure in the test cases.
    the solution should not have passed.

  • Custom User Avatar

    The tests weren't functional, so anything passed.

  • Custom User Avatar

    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.

  • Custom User Avatar

    I think this might not work according to documentation.

    In your code if num == 2, result is "1010"
    Expected is "10"

  • Custom User Avatar

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

  • Custom User Avatar

    Really cool solution

  • Custom User Avatar

    OK, good!

  • Custom User Avatar

    Task is quite easy but i tottaly forgot Java specially "import java.util.function.BiFunction;"

  • Custom User Avatar

    Ok o will try to import and see

  • Custom User Avatar

    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.

  • Custom User Avatar

    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