Ad
  • Default User Avatar

    Duplicate.

  • Default User Avatar

    Random tests added.

  • Custom User Avatar

    Not an issue

  • Custom User Avatar

    Description is already fixed and the other part should be raised as a suggestion or you should make your own kata based on standards you will like.

  • Custom User Avatar

    O(log n) where n is the input range.

    Since temperatures are stored as integers and the range of possible temperature is pretty small (things like 100000 degrees C is nonsensical) that's not the overhead you're looking for.

  • Custom User Avatar

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

  • Default User Avatar

    @haferjir: I closed it for you

  • Custom User Avatar

    Thanks for the input. I think the test cases are not quite sufficient. I'll have a look.

  • Default User Avatar

    Could you close this issue? I do not think this is a really problem.

    When the issue is closed, this kata could be approved!

  • Custom User Avatar

    Ah gotcha, see what you mean. Thanks for the spot!

  • Custom User Avatar

    I changed the test to fo by your suggestions, thanks!

  • Default User Avatar

    Hi haferjir, I fix the issues mentioned by you.

    Thanks.

  • Custom User Avatar

    I am not sure about Ruby as I do not have much experience with that language (Giacomo did the translation), but from looking at the code I think that the data is actually passed in mmyyyy format, not mm/yyyy format. Please do not confuse what is passed to the function with what is shown in the console, as the slash is actually being inserted in the console output describing the test.

    Please re-check whether the issue actually exists and if it does not, mark it as resolved.

    Thank you for your kind words about my kata! I am conceiving a much more complicated variation of it, but it will be published in Python (and I cannot say when it gets published, as I have some unresolved things yet). Keep looking at the katas I author if you don't want to miss it :)

  • Default User Avatar

    I don't agree with you. You can take two points of view to do this kata: the first one purely algorithmic from the definition of un with "a straight forward implementation"; the second approach - not at all mandatory, but as a complement - is to "get your head around" and find another and faster solution. At first I wrote "a straight forward implementation" and then, observing the results, I saw the other way and demonstrated it. This shows how helpful experimentation can be.
    I will precise that in the description. Thanks for your feedback.

  • Custom User Avatar

    Thanks for the feedback! I agree with you on the map vs each confusion, I just didn't have a better name for it! for_map?

    Good suggestion on naming it empty, I'll update!

  • Loading more items...