I feel like I'm approaching this stupidly, so if you have any ideas, I would be grateful. Hints that trivialize the problem are not welcome.
The integers 1 to n listed in order. A swap is a switching of any two elements in the list. Prove that any sequence of swaps that takes the original list to itself contains an even number of swaps.
I don't really know how to rigorously prove that, but intuitively it seems pretty obvious. I have an idea, but I'm not entirely sure that it won't trivialize the problem sso I'll hold off on saying it.
I don't really know how to rigorously prove that, but intuitively it seems pretty obvious. I have an idea, but I'm not entirely sure that it won't trivialize the problem sso I'll hold off on saying it.
ReplyDeleteprove it doesn't!
ReplyDeletealso, SEND ME BATTLECODEEEEE omg