The C Programming Tips and Tricks Wiki

 

PE052

Page history last edited by Kenneth Finnegan 1 yr 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.