摘要: 递归过程 https://www.bilibili.com/video/BV1Nt411K75B?from=search&seid=3890139359243729354 class TreeNode(object): def __init__(self, x): self.left = None 阅读全文
posted @ 2020-10-28 15:45 威威后花园 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 思路 1. 一圈圈的打印,开始点为左上角(0,0) 1. 第一圈:(0,0) 2. 第二圈:(1,1) 3. 第N圈:(n,n) 2. 总共可以打印多少圈,n为行与列的一半,超出就终止 python实现 def print_one_circle(array_input, rows, cols, st 阅读全文
posted @ 2020-10-28 14:19 威威后花园 阅读(148) 评论(0) 推荐(0) 编辑