3 ms·
I don't know what you're talking about, and that makes two of us. Writing the Nth-permutation is something I've done before as a leetcode challenge, here's exa
by zug_zug 2y ago
I don't know what you're talking about, and that makes two of us.
Writing the Nth-permutation is something I've done before as a leetcode challenge, here's example code [1]
Maybe python implements it poorly, but it can definitely be done in n-log(n), and also try researching a little more before you pick a disagreement. I'm sure a simple google search could have saved you the trouble.
----
1 - https://stackoverflow.com/questions/7918806/finding-n-th-permutation-without-computing-others https://stackoverflow.com/questions/7918806/finding-n-th-per...