Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2015年3月18日

摘要: "How many inverted pairs" - that usually ends up with MergeSort solution (of course there are other solutions out there)def mergeSort(arr): if len(... 阅读全文
posted @ 2015-03-18 03:42 Tonix 阅读(333) 评论(0) 推荐(0)

摘要: Nothing special, just some corner casesn = int(input())arr = [int(i) for i in input().strip().split()]# Collect rec = []i = 0while i arr[i + 1]: ... 阅读全文
posted @ 2015-03-18 03:01 Tonix 阅读(259) 评论(0) 推荐(0)