【剑指offer】Q19:二叉树的镜像
来源:互联网 发布:淘宝的销量多久清零 编辑:程序博客网 时间:2024/06/06 07:32
def MirroRecursively(root):# root is None or just one node, return rootif None == root or None == root.left and None == root.right:return rootroot.left, root.right = root.right, root.leftMirroRecursively(root.left)MirroRecursively(root.right)return root
0 0
- 【剑指offer】Q19:二叉树的镜像
- Q19:二叉树的镜像
- 【剑指offer】二叉树的镜像
- [剑指Offer]二叉树的镜像
- 剑指offer--二叉树的镜像
- 剑指Offer-二叉树的镜像
- 《剑指offer》二叉树的镜像
- 剑指 offer:二叉树的镜像
- 【剑指offer】二叉树的镜像
- 剑指offer 二叉树的镜像
- [剑指offer]二叉树的镜像
- 《剑指offer》-二叉树的镜像
- 剑指Offer:二叉树的镜像
- 剑指offer|二叉树的镜像
- 《剑指offer》二叉树的镜像
- 剑指Offer:二叉树的镜像
- 【剑指offer】二叉树的镜像
- 剑指Offer:二叉树的镜像
- HDU-1255-覆盖的面积(线段树)
- hdu 4770 Lights Against Dudely(回溯)
- 算法导论——lec 09 中位数和顺序统计学
- How to turn Vim into a full-fledged IDE
- 第一次写博客
- 【剑指offer】Q19:二叉树的镜像
- 最大子串和
- 创新实验室实习生每周工作总结【实习第十四周】
- hdu 2553 N皇后问题
- 周报(第十四周)
- 你的APP表现如何?
- hdu 4771 Stealing Harry Potter's Precious(bfs)
- 计算字符串中子串出现的次数
- CSS float 浮动属性详解