摘要: 题目描述 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinctnumbers from the original list. For example, Given 阅读全文
posted @ 2017-05-18 11:26 qqky 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目描述 操作给定的二叉树,将其变换为源二叉树的镜像。 输入描述: 二叉树的镜像定义:源二叉树 8 / \ 6 10 / \ / \ 5 7 9 11 镜像二叉树 8 / \ 10 6 / \ / \ 11 9 7 5 解题思路: 1)若左右子结点不为空则交换左右子结点 2)对交换后的左子结点递归处 阅读全文
posted @ 2017-05-18 10:27 qqky 阅读(170) 评论(0) 推荐(0) 编辑