Fork me on GitHub
摘要: 合并两个排序数组 def mergeList(A, B): s1 = len(A) s2 = len(B) i,j = 0,0 res = [] while i < s1 and j < s2: if A[i] <= B[j]: res.append(A[i]) i += 1 else: res.a 阅读全文
posted @ 2021-02-07 16:09 西西嘛呦 阅读(163) 评论(0) 推荐(0) 编辑