Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Fixed for any language :)

  • Default User Avatar

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

  • Custom User Avatar

    My pleasure :)

  • Custom User Avatar

    Good job!

  • Custom User Avatar

    JS and Ruby translation kumited :)

  • Custom User Avatar

    @AlexIsHappy: Don't use headings to create bold text. Instead, create a short heading (e.g. # Task) and add the text after the heading.

  • Custom User Avatar

    Something else I just thought about. The metaphor for splitting a watermelon is probably not the best fit because in real life, a watermelons weight would certainly be a float and not an int. Also, there's no real reason why anybody would need each half to be of an even weight, other than to fit the story.

    Perhaps a better metaphor would make the problem easier to understand. For example, if the boys have a box of earplugs and want to make sure that they have the right number so that both boys can have earplugs for the future. In this scenario, the number of earplugs makes sense as an int instead of a float and there is a reasonable reason why each boy would need an even number since (most) people need 2 earplugs in order to function properly.

    Just my thoughts.

  • Custom User Avatar

    I love an added story behind a problem, but this story was a bit verbose and obfuscates a fairly straight-forward task. It could easily be rewritten more concisely while maintaining the casual tone of the kata.

  • Custom User Avatar

    I can't even see anybody within my own clan. This is basically a must-have.

  • Custom User Avatar

    One of my issues with katas is that there's no context, so we have no idea what metric is more important for any given kata, so it's impossible to make the performance vs code size vs readability judgement call.
    I chose code size, but I'm aware that comes with performance problems shrug you gotta choose something ;)

  • Custom User Avatar

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