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

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

PE052

Page history last edited by Kenneth Finnegan 11 years, 11 months 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.