TDD Kata (7): Manage your Energy

Previous Post

This is a problem that I found in my Google Code Jam. This time, it is a problem where we should put a lot of neuron work in the resolution of algorithm. Apparently, there is no obvious solution. The problem is:

You can check my solution at:

And my commit history at:

I was with few left time, so I only wrote some tests, and run the Google initial example. But I could not solve the “small set”. Some days ago, I tried again, but the result I got is not the correct, according Google.

So, some day I could take the problem again. It should be tricky how to decide the energy to put on each activity, knowing the future.

Let’s got, try to solve it!

Keep tuned!

Angel “Java” Lopez

3 thoughts on “TDD Kata (7): Manage your Energy

  1. Pingback: TDD Kata (6): Bulleyes | Angel "Java" Lopez on Blog

  2. Pingback: TDD Kata (7): Manage Your Energy | MVPs de LATAM

  3. powerpoint free download 2010serial

    Greetings from California! I’m bored at work so I decided to browse your site on my iphone during lunch break. I enjoy the knowledge you provide here and can’t wait to take
    a look when I get home. I’m shocked at how fast your blog loaded on my mobile .. I’m not even using
    WIFI, just 3G .. Anyhow, very good blog!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s