![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构与算法
夜猫子5518
刚刚工作5年半,老菜鸟一枚!
展开
-
冒泡,简单选择,直接插入,二分法插入,希尔排序
package Algorithm; public class JavaAlgorithm { /** * 冒泡排序;O(n*n) */ public void bubbleSort(int [] array) { int temp; int count = 0; for(int i =1;i原创 2018-01-10 18:05:37 · 181 阅读 · 0 评论 -
二叉树迭代/非迭代前/中/后序排列
/** * 非 迭代 中序排列 * @param args */ public void nonmidOrder(TreeNode node) { if(node == null) { return ; } List<TreeNode> record = new ArrayList<Tr原创 2017-11-20 11:40:56 · 219 阅读 · 0 评论