skip to content
everlasting的博客

trick

相邻交换次数 = 逆序对数。 题目链接

01字符串:

  1. 关注出现次数 题目链接
  2. 关注奇偶性 / 模数
  3. 关注XOR
  4. 关注不变量