摘要: Leetcode4——寻找两个有序列表的中位数 思路:归并排序带来的时间复杂度是O(M+N) 我们希望达到的时间复杂度是O(log(M+N)) 核心思想:二分 def findKth(k): index1,index2=0,0 while True: if(index1==m): return nu 阅读全文
posted @ 2020-09-14 13:39 alice1418401023 阅读(119) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-15 15:48 alice1418401023 阅读(71) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-15 14:36 alice1418401023 阅读(131) 评论(0) 推荐(0)