[HackerRank] Update Angry Professor

Update Angry Professor

[Refactoring]

February 24, 2017 at 01:27PM
via GitHub http://ift.tt/2l1zBEH

Advertisements

[HackerRank] Utopian Tree

Utopian Tree

This calculates the height of a tree after a given number of growth cycles, where there are two different types of cycles. One cycle doubles the height, the other only increases the height by one. I got to use a generator here, which is great. It took me probably too long to build the method to do the actual calculating, but afterwards I realize that it should have been easy.

February 22, 2017 at 06:40AM
via GitHub http://ift.tt/2l1zBEH