Ad
  • Custom User Avatar

    The fact that you get confused and cannot understand the generalization does not mean you can tell others to go fuck themselves. It's not how things work here. You could just read the "HINT I" in the description, which explains exactly this aspect.

    Would you just GIT GUD instead of insulting people, would be much more beneficial to everyone.

    where positive numbers come from in a negative number series, is there some kind of mathematical proof that there should be positive numbers???

    Yes, the HINT I explains this.

  • Custom User Avatar

    No, it's not broken.

  • Custom User Avatar

    It's broken?
    FibonacciTest
    [0]
    [1]
    [2]
    [3]
    [4]
    [5]
    [-6]
    [-96]
    [1,000]
    [1,001]
    [-62]
    [-73]
    testFib[-73]
    expected:<806515533049393> but was:<-806515533049393>
    Stack Trace
    Completed in 3ms
    Completed in 7ms
    [-44]
    [-48]
    [-96]
    [-28]
    [-68]
    [-69]
    testFib[-69]
    expected:<117669030460994> but was:<-117669030460994>
    Stack Trace
    Completed in 3ms
    [-34]
    [-53]
    testFib[-53]
    expected:<53316291173> but was:<-53316291173>
    Stack Trace
    Completed in 2ms
    [50,541]
    [1,098,224]
    testFib[1,098,224]

  • Custom User Avatar

    I can't pass the test 09. I measured the slow solution(N^2) on test 08 and got an average time of 430 ms.My solution, as I believe for (logN), takes an average of 80-90ms.However, this is not enough to pass test09

    KataTest
    test01_Example
    test02_TwoPoints
    test03_DuplicatedPoint
    test04_Tiny
    test05_Small
    test06_TwoPoints
    test07_DuplicatedPoint
    test08_Medium
    Log
    Прошло времени, мс: 103
    Прошло времени, мс: 92
    Прошло времени, мс: 57
    Прошло времени, мс: 92
    Прошло времени, мс: 67
    Прошло времени, мс: 75
    Прошло времени, мс: 99
    Прошло времени, мс: 73
    Прошло времени, мс: 62
    Прошло времени, мс: 72
    Test Passed
    Completed in 811ms
    test09_Large
    STDERR
    Execution Timed Out (16000 ms)

  • Custom User Avatar

    What edge test checking?I can't pass only this

  • Custom User Avatar

    solve it. It was wrong logic with last element in last range

  • Custom User Avatar

    Print the input, without it, no one can know what's right or wrong there.

  • Custom User Avatar

    Hi everyone.Random test fails:
    It should work for random inputs too expected:<...5,-4,-1,1,2,5,7,8,10[,11,]13> but was:<...5,-4,-1,1,2,5,7,8,10[-]13>
    Very strange.Looks like 12 duplicated, but why it absent in expected?

  • Custom User Avatar

    That's JUnit way of highlight where two strings are different, those brackets aren't part of the string. The expected order is 2 and 200, your code returns 200 and 2.

  • Custom User Avatar

    Java.
    WTF test.
    expected:<1 2[ 200] 4 4 6 6 7 7 18 27 7...> but was:<1 2[00 2] 4 4 6 6 7 7 18 27 7...>
    How in string can be ] or [ ??
    Its not fair

  • Custom User Avatar

    me to test11 timed out

  • Custom User Avatar

    I can't pass test11(timeout). I don't use recursion, I use only LongStream and parallelStream and 1 ArrayList.What problem?

  • Custom User Avatar

    explicitly convert

  • Custom User Avatar
  • Custom User Avatar

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

  • Loading more items...