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.
This is my favorite solution compared to my slow recursive solution. I like how you coded the transitions in state. Very neat indeed !
Can you explain the relation. I have been trying to figure out why you add together. I did get that the choice represents whether or not the egg breaks.
I am trying to figure out how come this solution is fast. Any thoughts to help me? Is the magic the build_palindrome() function?
So I agree that your solution works ( I didn't get the answer right myself ), and this is great stuff. I guess the answer to your question about the loops is the fact that there wasn't a guarantee (at first viewing) that looping thru just once would guarantee the optimal solution.