7 kyu
Cats in hats
855 of 1,73016sheep
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Rounding floats to decimal values does not work. Use fuzzy equality.
Interesting Kata but it can be a bit misleading. You say "Counting starts from the Cat In The Hat" which due to the capitalization I take it you mean the largest cat (The 2,000,000 unit tall one). So when passed 7 this actually means 7 cats on top of the largest cat, making in theory 8 total cats.
What is the height of the first cat?
wtf
PHP translation
Approved
TypeScript translation
Approved
Python translation
Pleas, what's wrong with it?
CoffeeScript translation
Approved
Why zero cats are 2 000 000 tall?
Counting starts from the Cat In The Hat
means n is nr of cats other than the first cat with the hat.Not an issue
My brain melts by reading the task. xD
Haskell : https://www.codewars.com/kumite/5bceac7aef6f491a68000003?sel=5bceac7aef6f491a68000003
(no rounding, fuzzy compare at 0.001)
Rejected some time ago.
What a neat "kat-a"!
Ruby-Translation kumited.
Please check and approve. Thanks.
C++-Translation kumited.
Please check it and approve. Thanks! ;)
C#-Translation kumited!
https://www.codewars.com/kumite/57b6a9eb1fae8afcf0000025
Please check and approve it! :-)
This comment has been hidden.
Fixed.
This comment has been hidden.
Thanks, I will remove it.
Nice kata, but this sentence is incorrect: Every cat is 60 % bigger than the cat underneath their hat. The larger cat is actually 250% larger than the smaller cat.
However, I would actually recommend changing the sentence to state that the smaller cat is only 40% the height of the larger cat. This would be accurate and clearer.
Initial reaction is its more of a word problem then a coding problem.
This comment has been hidden.