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