Ad
  • Custom User Avatar

    i saw this question and couldnt fathom doing it without regex. great use of split and join

  • Custom User Avatar

    Agreed, shouldn't be tagged that way. It would be great if there were community feedback integrated into the tagging system, rather than relying on a single author's sometimes flawed ideas about what concepts apply. I just submitted this suggestion at https://codewars.ideas.aha.io/ -- please upvote!

  • Custom User Avatar

    ran into the same issue. round(num, 2) rather than casting as string and reconverting to float allowed me to pass tests.

  • Custom User Avatar

    This is true for Python as well.

  • Custom User Avatar

    Agreed. In general, the discussion threads attached to each kata would be far more useful if they were to some degree "owned by" each language implementation of the kata, rather than all jumbled together.

  • Custom User Avatar

    """Testing for 32
    '0.0 is freezing temperature' should equal '0.0 is above freezing temperature'"""

    False. Zero is in fact the definition of freezing. To pass tests, I had to return freezing for c < 0, rather than c <= 0, which is the accurate choice.

  • Custom User Avatar

    I agree, downvoting would be a useful mechanism to flag poorly written katas and/or encourage authors to fix them. Any user with a given account age/level of community engagement/# of katas solved/whatever should be able to downvote. Right now total upvotes is not useful info--it's just a proxy for length of time a kata has been on the site, since there's no way to reverse the trend.

  • Custom User Avatar

    Agreed. It appears that Validator only accepts username/password pairs that do not contain the characters to be excluded, thus rendering any pre-processing moot. This kata description and excecution is flawed in a number of ways; I wish there were a way to downvote.

  • Custom User Avatar

    I don't understand why this is tagged "Bugs" -- no debugging is involved in this problem. Suggest you remove that tag.