Ad
  • Custom User Avatar

    The directions are a bit sparse. I think using the word "rank" to signify both the letter_value and the position in sorted winning_numbers could be confusing.

  • Custom User Avatar

    I think you have just the right idea. This is a great learning tool. I think I would like to make something like this for Redux.

    The difficulty here is that a person needs to already have some sense of how Flux works in order to understand what to do. Maybe a bit more background on stores?

  • Custom User Avatar
  • Custom User Avatar

    Dilute. B4B, the word you're looking for is 'dilute.' Yes, it makes perfect sense that CW should prvent the dilution of the platform--though, how that plays out should be up for debate. Certainly, the platform should accomodate interesting stories that frame a given challenge within a word-problem, because it reifies the theoretical framework in a useful way--at least, useful for learning.

    I added fixed tests that accomodate additional edge cases. But, there is no need to explicitly state all of the edge-case requirements in the descrption.

    I think it may be likely that your (both of you) first languages are not English, but that is no excuse for sounding like tools.

    Thanks for the advice. I will keep it for my own use in a tutoring setting.

  • Custom User Avatar

    Get over yourselves. It's for kids.

    1. In order to facilitate discovery learning, I have not expliticly stated the final condidtions.
    2. This is a simple enough concept, it doesn't really require exhaustive tests.
  • Custom User Avatar

    Certainly. Several other submitted solutions accomplish this. To be honest, my solution was in protest of the task. Obviously, a loadbalancer need not assign jobs according to their numberical value, which is to say, the status of the 'solution' after the second loop should be acceptable.

  • Custom User Avatar

    You're absolutely right. Thank you.

  • Custom User Avatar
    1. I removed the outer list for these tests. Uncaught copy/paste error.
    2. That is on purpose. In a chess game, it is certainly possible for a piece to later move to the "start" spot vacated by the knight.
    3. Random tests added.
  • Custom User Avatar

    It's not obvious why every answer should have two indicies. For example, it seems counter-intuitive that reverseFizzBuzz([1,"Fizz","Buzz","Fizz",5,"FizzBuzz"]) ==> [2,3] while reverseFizzBuzz(["Fizz","Fizz","Fizz","Fizz","Fizz","FizzBuzz"]) ==> [1,6]. In the second case, 6 is a multiple of 1...

  • Custom User Avatar

    Do you know how to generate random tests in Ruby?

  • Custom User Avatar

    Will you rate my new kata "Knight's Attack"? No one has tried it yet.

  • Custom User Avatar

    Thanks, man. It means a lot coming from you. It's my first one.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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