Project Euler #62: Cubic permutations

  • + 0 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