Ad
  • Default User Avatar

    I like this kata but I think the description needs a little work.

    I think the table is slightly confusing as it is. For starters, I think the 0 row/column should be removed - it doesn't add anything relevant. I can see what you were trying to do with the table, but I think I'd prefer either the x-axis be moved to the bottom (so they align) or to just bite the bullet and have the y-axis start at the top and increase downwards (to match people's typical assumptions about tables).

    I think 'such as' in the line should be 'such that'. Similarly, 'take n as parameter and return the sum of the _' -> 'take n as a parameter and return the sum of _'.

    Personally I would prefer the functions be called something like 'sum_f', 'sum_g' and 'sum_h', or alternatively remove the mentions of f, g and h (just call them min, max and sum) - otherwise it can be confusing what f, g and h actually have to do with the code.

    Otherwise, good work! I like the hints a lot.

  • Default User Avatar

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

  • Default User Avatar

    This kata has no Clojure tests currently.

  • Default User Avatar

    I know that we all know what this function is supposed to do, but I feel the description for this kata is lacking. A function that always returns "Even", or always returns "Odd", or randomly picks between "Even" and "Odd" fulfills the description perfectly. The description should mention returning "Even" for even numbers and vice versa.

  • Default User Avatar

    Typo:

    "Also, assume that you have an infinite ammount of coins."
    

    ammount should be spelled amount.