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.
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.
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.
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
.
Missing item with a value of 159
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.
I have the same problem in Javascript. I don't know what's failing, everything should work just fine
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.
Did you ever find the solution to this issue? Would you mind providing me a hint?
well , why are you printing anything to stdout ?
I am experiencing an error - "Max Buffer reached: Too much information has been written to stdout." What should I do?
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.
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?
The answer
175
is the good one.python 2.7
Loading more items...