Back to Problem Solutions forum
Hi all,
I'm really stuck on this one. Are we supposed to generate all the permutations of 12! first, then find item in each given index?
Cause my computer cannot handle generating the permutation of 12! It kept crashing that I had to forcefully restart my computer.
I'm not sure if I'm on a wrong track or my computer is just too dated.
Thanks in advance!
As you said 12 factorial is too much. So brute force approach is rather impossible. This is not a problem of your computer. In order to solve it you must find different approach.
Thanks! I finally went another way and got it.