We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Valid permutation can have zeros, but no leading zeros.
Initially, I had the same problem like you and passed only #0,#1,#2 and #9. Then I discovered that I printed the correct numbers in the wrong order ... they must be sorted ascendingly.
Project Euler #62: Cubic permutations
You are viewing a single comment's thread. Return to all comments →
Valid permutation can have zeros, but no leading zeros.
Initially, I had the same problem like you and passed only #0,#1,#2 and #9. Then I discovered that I printed the correct numbers in the wrong order ... they must be sorted ascendingly.