Cody

Problem 44073. Fractal: area and perimeter of Koch snowflake

Starting from an equilateral triangle with side 's', what is the area and perimeter of Koch snowflake at n'th recursive iteration?

For given 's' and 'n' as function input, return 'Area' and 'Perimeter' of snowflake. (round to nearest integer for simplicity)

Ref: https://en.wikipedia.org/wiki/Koch_snowflake

Solution Stats

46.15% Correct | 53.85% Incorrect
Last Solution submitted on Feb 08, 2019