Fork me on GitHub
摘要: We have some permutation A of [0, 1, ..., N - 1], where N is the length of A. The number of (global) inversions is the number of i < j with 0 <= i < j 阅读全文
posted @ 2018-02-10 17:53 hellowOOOrld 阅读(491) 评论(0) 推荐(0) 编辑
摘要: On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence 阅读全文
posted @ 2018-02-10 02:04 hellowOOOrld 阅读(378) 评论(0) 推荐(0) 编辑