You are viewing a single comment's thread. Return to all comments →
Hint: Try to use hash/dictionary to store data, then you can save a lot of running time!
For example: {'01234566': [41063625, 56623104, 66430125]} within:
41063625 = 345^3; 56623104 = 384^3; 66430125 = 405^3
'01234566' is a sorted string that contains all digits
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #62: Cubic permutations
You are viewing a single comment's thread. Return to all comments →
Hint: Try to use hash/dictionary to store data, then you can save a lot of running time!
For example: {'01234566': [41063625, 56623104, 66430125]} within:
41063625 = 345^3; 56623104 = 384^3; 66430125 = 405^3
'01234566' is a sorted string that contains all digits