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:

https://code.google.com/codejam/contest/2418487/dashboard#s=p1

You can check my solution at:

https://github.com/ajlopez/TddRocks/tree/master/Energy

And my commit history at:

https://github.com/ajlopez/TddRocks/commits/master/Energy

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
http://www.ajlopez.com
http://twitter.com/ajlopez

3 Comments »

  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:

WordPress.com Logo

You are commenting using your WordPress.com 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 WordPress.com.

%d bloggers like this: