文档介绍:?概述:树的查询结点的删除树的遍历重点:难点: 二叉树的查询102131516如图,,<10 , 二叉树第026课算法及数据结构102131516然后,<5, 二叉树的查询6 二叉树第026课算法及数据结构102131516判断,,,其后再没有子树则判定树中无该结点,给出失败提示.. 二叉树的查询6 二叉树第026课算法及数据结构private Node getNode(int key) throws Exception{ Node result = root; while( != key){if(key < ){result = ;}else{result = ;}if(result == null){throw new Exception("Can't find value by "+key);} } return result;} 二叉树的查询6 ,, 二叉树第026课算法及数据结构102131516查询的第一步首先要掌握目标结点(被删除结点), 二叉树的删除6 二叉树的删除6 二叉树的删除6 二叉树