Angel \”Java\” Lopez on Blog

August 18, 2013

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


  1. […] Previous Post Next Post […]

    Pingback by TDD Kata (6): Bulleyes | Angel "Java" Lopez on Blog — August 18, 2013 @ 10:39 pm

  2. […] TDD Kata (7): Manage Your Energy […]

    Pingback by TDD Kata (7): Manage Your Energy | MVPs de LATAM — August 19, 2013 @ 3:46 pm

  3. 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!

    Comment by powerpoint free download 2010serial — August 28, 2013 @ 10:42 pm

RSS feed for comments on this post. TrackBack URI

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

Create a free website or blog at

%d bloggers like this: