You are viewing a single comment's thread. Return to all comments →
found solution here https://www.tutorialspoint.com/program-to-find-number-of-sequences-after-adjacent-k-swaps-and-at-most-k-swaps-in-python but can't understand the idea behind the solution
Seems like cookies are disabled on this browser, please enable them to open this website
Swap Permutation
You are viewing a single comment's thread. Return to all comments →
found solution here https://www.tutorialspoint.com/program-to-find-number-of-sequences-after-adjacent-k-swaps-and-at-most-k-swaps-in-python but can't understand the idea behind the solution