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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

PE052

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