Ad
  • Custom User Avatar

    This is still an issue

  • Custom User Avatar

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

  • Custom User Avatar

    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!

  • Custom User Avatar

    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?

  • Custom User Avatar

    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.

  • Custom User Avatar

    It shouldn't since you're only changing parameter names.

  • Custom User Avatar

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

  • Custom User Avatar

    Can't tell what the question is asking to do

  • Custom User Avatar

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

  • Custom User Avatar

    I'm still pretty new to es6 - could you explain this to me?

  • Custom User Avatar

    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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    Can't understand what it's asking me to fix.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Needs test cases. Katas without them are aggravating for users that don't realize they can make their own tests.

  • Loading more items...