Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Duplicate.
Random tests added.
Not an issue
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.
O(log n)
wheren
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.This comment is hidden because it contains spoiler information about the solution
@haferjir: I closed it for you
Thanks for the input. I think the test cases are not quite sufficient. I'll have a look.
Could you close this issue? I do not think this is a really problem.
When the issue is closed, this kata could be approved!
Ah gotcha, see what you mean. Thanks for the spot!
I changed the test to fo by your suggestions, thanks!
Hi haferjir, I fix the issues mentioned by you.
Thanks.
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 :)
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.
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...