摘要:
[本文出自天外归云的博客园] 问题:合并两个有序数组 思路:双指针挨个比较两个数组的元素 代码如下: #!/usr/bin/python def combine_two_sorted_arr(a, b): c = [] i, j = 0, 0 while i < len(a) and j < len 阅读全文
摘要:
[本文出自天外归云的博客园] 通过列表构造树,按层级遍历打印二叉树: #!/usr/bin/python # Write Python 3 code in online editor and run it. class TreeNode(): def __init__(self, val): sel 阅读全文
摘要:
[本文出自天外归云的博客园] Python中通过内置的sort函数和sorted函数进行排序方法总结: #!/usr/bin/python # Write Python 3 code in online editor and run it. # 利用list的sort方法对数组顺序排序 a = [1 阅读全文
摘要:
[本文出自天外归云的博客园] 问题是 gazelle: imports git.code.oa.com/atta/attaapi-go and git.code.oa.com/atta/attaapi_go resolve to the same repository rule name com_o 阅读全文