| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

View
 

PE052

Page history last edited by Kenneth Finnegan 16 years, 1 month ago

Project Euler Problem #52

 

I used a 6 by 10 array to store the counts of each digit for 1x, 2x, 3x, ... 6x.  I then just looped through them and checked to see if everything was equal, which would imply that they have the same number of the same digits.

 

Runtime: 0.184 seconds

PE052_c

 


Return to list of solutions

Comments (0)

You don't have permission to comment on this page.