Tag Archives: Programming Challenges

Programming Challenges: 110206 Erdos Numbers

I had first tired the Erdos Numbers problem back in 2004, and at the time I was having some odd problems with wrong answers, so ended up submitting the problem 160 times, using while(true); blocks to find which Scenario was … Continue reading

Posted in Programming | Tagged | Leave a comment

Programming Challenges: 110208 Yahtzee

I completed the Yahtzee problem today, after a couple of days effort. I first double checked my previous 2004 solution’s scoring function, there were a few gems in there that I had to reprove, like how the full house was … Continue reading

Posted in C++, Programming | Tagged | 2 Comments

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 … Continue reading

Posted in Programming | Tagged | Leave a comment

Programming Challenges: Compilation error

If you get a Compilation Error message when you submit a problem solution, go to the Statistics page, and then open your latest submission to see the actual error messages. Annoying, but better than guessing what’s wrong.

Posted in Programming | Tagged | Leave a comment

Programming Challenges: 110501 Primary Arithmetic

Primary Arithmetic Not a too tricky a problem here, took two attempts because I forgot to clear the carry flag in the non-carry case.

Posted in Programming | Tagged | Leave a comment