摘要: 构建二叉树;实现前序、中序、后序遍历;两种删除节点的原则 package com.atguigu.datastructures.binarytree object BinaryTreeDemo { def main(args: Array[String]): Unit = { //先使用比较简单的方 阅读全文
posted @ 2020-07-05 22:08 济默 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 哈希表又叫散列表,这里用数组和链表实现 package com.atguigu.datastructures.hashtable import scala.util.control.Breaks._ object HashTableDemo { def main(args: Array[String 阅读全文
posted @ 2020-07-05 22:07 济默 阅读(290) 评论(0) 推荐(0) 编辑