Ad
  • Default User Avatar

    You haven't completed the calculation 2x+1 enough times. If you repeat this calculation and sort again, 159 will appear in the 50th position.

  • Default User Avatar

    Just cause lots of people passed the kata doesn't mean the tests are correct. It might mean that those that passed the data managed to bypass defects in the tests.

  • Default User Avatar

    Dendisol answered corectly, according to my opinion Yflash doesnt have correct algoritm, 159 is missing and the reason probably is why calculating of the next iteration is not included, so if you pay more attention, you will find that 2*79+1=159....I dont know weather i am clear enough

  • Custom User Avatar
  • Default User Avatar

    Missing item with a value of 159

  • Default User Avatar

    I am very sorry since I can only repeat myself. There are no error in the tests.
    dblLinear(50) should return 175
    All languages have that same tests. All return 175. 1109 guys passed the kata.

  • Custom User Avatar

    I have the same problem in Javascript. I don't know what's failing, everything should work just fine

  • Custom User Avatar

    Having the same issue in Ruby. Rest of the tests pass but this one fails, same reason - it says it should be 189 but I'm getting 175. No idea where I'm going wrong with my solution.

  • Custom User Avatar

    Did you ever find the solution to this issue? Would you mind providing me a hint?

  • Custom User Avatar

    well , why are you printing anything to stdout ?

  • Default User Avatar

    I am experiencing an error - "Max Buffer reached: Too much information has been written to stdout." What should I do?

  • Default User Avatar

    I am afraid that something is wrong in your code, 176 guys passed the kata in Python. Moreover this test is the same in all languages.

  • Default User Avatar

    According to my code, u = [1, 3, 4, 7, 9, 10, 13, 15, 19, 21, 22, 27, 28, 31, 39, 40, 43, 45, 46, 55, 57, 58, 63, 64, 67, 79, 81, 82, 85, 87, 91, 93, 94, 111, 115, 117, 118, 121, 127, 129, 130, 135, 136, 139, 163, 165, 166, 171, 172, 175, 189, 190, 193, 202, 243, 244, 247, 256, 283, 364]
    test1(10) = 22(index = 10)
    test2(20) = 57(index = 20)
    .
    test4(50) = 189(index = 50) which is not equal to 175(index = 49)
    How?

  • Default User Avatar

    The answer 175is the good one.

  • Default User Avatar

    python 2.7

  • Loading more items...