摘要: 链表反转,一发成功~ 阅读全文
posted @ 2018-01-17 10:32 Sherry_Yang 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 求二叉树的最小深度: 阅读全文
posted @ 2018-01-17 10:13 Sherry_Yang 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 求二叉树的最大深度 非递归写法1(直接摘自其他博客): 非递归写法2(直接摘自其他博客): 阅读全文
posted @ 2018-01-17 09:53 Sherry_Yang 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 判断二叉树是否平衡 a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. 阅读全文
posted @ 2018-01-17 09:45 Sherry_Yang 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 下面是非递归的一种写法:(可以说是很漂亮了) 阅读全文
posted @ 2018-01-17 09:26 Sherry_Yang 阅读(149) 评论(0) 推荐(0) 编辑