摘要: For an array A, if i < j, and A [i] > A [j], called (A [i], A [j]) is a reverse pair.return total of reverse pairs in A. Example Given A = [2, 4, 1, 3 阅读全文
posted @ 2017-08-27 11:23 anghostcici 阅读(79) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smal 阅读全文
posted @ 2017-08-27 11:15 anghostcici 阅读(117) 评论(0) 推荐(0) 编辑