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.
This is still an issue
This comment is hidden because it contains spoiler information about the solution
Update:
I didn't mention it, but all of the original user tests pass.
If I add:
if len(arr) > 5:
return []
The response flips, correctly tellng me: [] should equal [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41], [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]]
If I remove it, it comes back the other way around.
If anyone else is running into this bug, please holler!
Are the random tests currently broken for python? I might be missing something, but…:
The arr: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]
The chunksize: 21
My answer: [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41], [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]]
Response: [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41], [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]] should equal []
There is no direction that claims it should ever return only an empty array. Is this not happening for anyone else?
First time I ran my JS solution, the test case miscounted my whitespaces in a number of random cases. Second time I submitted, it worked.
It shouldn't since you're only changing parameter names.
This comment is hidden because it contains spoiler information about the solution
Can't tell what the question is asking to do
This comment is hidden because it contains spoiler information about the solution
I'm still pretty new to es6 - could you explain this to me?
In order to test memoization (which I think you're doing since you give the fibNum array), you should use larger numbers so people don't use a simple recursive function without memoization.
First of all, I love this site. I've only been coding for a few months, but I'd say I've learned most of what I know about javascript and ruby through katas.
While this has been invaluable, I still find myself having difficulty reading complex solutions and even more trouble reading code outside this site. When code uses algorithims unfamiliar to a comp sci novice like myself, I can become quite lost.
With that in mind, would it be difficult to create another section of this site more geared toward reading and commenting modularized code?
I know commenting would be difficult to test for, but I believe with a good combination of multiple choice (perhaps 5 questions, with a varying amount containing true answers or multiple true answers?) it would be possible. It would also introduce beginners like myself to programming terminology (eg duck typing, declarative programming, event loop, etc.).
Either way, thanks for the incredible learning expereince!
Can't understand what it's asking me to fix.
This kata is too long to be a 7th kyu. I'd recommend 6th so more people would care to take the time to finish it.
Needs test cases. Katas without them are aggravating for users that don't realize they can make their own tests.
Loading more items...