Skip to content

Latest commit

 

History

History

catsInHats

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Cats in hats

7 kyu link to kata
my solution

The Cat In The Hat has cat A under his hat, cat A has cat B under his hat and so on until Z

The Cat In The Hat is 2,000,000 cat units tall.

Each cat is 2.5 times bigger than the cat underneath their hat.

Find the total height of the cats if they are standing on top of one another.

Counting starts from the Cat In The Hat

n = the number of cats

fix to 3 decimal places.