数据结构
BUTIAN22
这个作者很懒,什么都没留下…
展开
-
希尔排序和插入排序
希尔排序public class ShellSort extends Object{ int data[]=new int[8]; int size=8; public static void main(String[] args) { ShellSort test=new ShellSort(); test.inputarr(); System.out.printf("你输入的原始数组是:"); test.s.原创 2021-12-08 15:19:25 · 466 阅读 · 0 评论 -
二叉树建立及前序中序后序遍历
package com.systop.erchashu;public class TreeNode { int value; TreeNode left_node; TreeNode right_node; public TreeNode(int value) { this.value = value; this.left_node = null; this.right_node = null; }}p.原创 2021-11-10 15:28:22 · 536 阅读 · 0 评论