![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
qq_42506914
这个作者很懒,什么都没留下…
展开
-
稀疏数组
-----原棋盘------0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0...原创 2019-03-28 22:13:42 · 163 阅读 · 0 评论 -
冒泡排序
package com.atguigu.sortimport scala.util.Random/** * @author wade * @create 2019-04-07 22:15 */object BubbleSore { def main(args: Array[String]): Unit = { val arr = new Array[Int]...原创 2019-04-08 18:48:55 · 86 阅读 · 0 评论 -
选择排序
package com.atguigu.sortimport com.atguigu.sort.BubbleSore.bubbleSortimport scala.util.Random/** * @author wade * @create 2019-04-07 22:45 */object SelectSort { def main(args: Array[...原创 2019-04-08 18:49:42 · 111 阅读 · 0 评论 -
插入排序
package com.atguigu.sortimport com.atguigu.sort.SelectSort.selectSortimport scala.util.Random/** * @author wade * @create 2019-04-07 23:09 */object InsertSorrt { def main(args: Array...原创 2019-04-08 18:50:25 · 133 阅读 · 0 评论 -
快速排序
package com.atguigu.sortimport scala.util.Randomimport scala.util.control.Breaks/** * @author wade * @create 2019-04-07 23:41 */object QuickSort { def main(args: Array[String]): Uni...原创 2019-04-08 19:10:49 · 101 阅读 · 0 评论 -
归并排序
package com.atguigu.sortimport com.atguigu.sort.InsertSorrt.insertSortimport scala.util.Random/** * @author wade * @create 2019-04-08 17:54 */object MergeSort { def main(args: Array[...原创 2019-04-08 19:11:57 · 146 阅读 · 0 评论 -
二分查找实现
package com.atguigu.sort/** * @author wade * @create 2019-04-08 20:26 */object MyBinarySearch { def main(args: Array[String]): Unit = { //数组必须是有序的 val arr = Array(1,5,78,10...原创 2019-04-08 20:47:41 · 198 阅读 · 0 评论