Thursday, March 21, 2013

project euler problem 048

Self powers

This is a homework problem. It took 4ms in my notebook to get the answer.

The algorithm I used is in CLRS, chapter 31(3rd ed). Everyone should have this classical book, "Introduction to algorithms". I have a copy of the third edition. The only thing I want to complain is that it is too heavy.  But it helped me to solve quite a few PE problems. I like to read this book, but did not have time to work on the problems in the book.

No comments:

Post a Comment