Saturday, April 6, 2013

project euler problem 090

Cube digit pairs

The problem is easy to solve since there is not too many numbers to be checked. The critical part is to find all combinations efficiently. I checked several pages in the discussion thread, but I did not find any better method.

Update 10/07/2017

Actually there is a an approach in the discussion which used bit to represent 0-9. With bit, it is easier to implement the code. 

No comments:

Post a Comment