Programming Challenges: 110701 Light. More light

Today’s problem was Light. More Light, and I knew the naive solution would timed-out, and no surprise when it did.

I then looked to reduce the number of calculations, and that also timed-out.

The end solution was to see the bigger picture pattern, and just do a single simple calculation.

This entry was posted in Programming and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use a subset of HTML tags and attributes