![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构排序
文章平均质量分 67
DongZhongHuai
人生只做证明题,只要我想,我就要靠自己的努力,通过合法途径取得成功!
展开
-
数据结构JAVA-----直接插入排序
import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ int a[]={ 49, 38, 65, 97, 76, 13, 27, 50}; insertSort(a); for (int i:a) {原创 2017-10-09 19:06:14 · 177 阅读 · 0 评论 -
折半查找插入排序
import java.awt.print.Printable; public class InsertSort { public static void main(String[] args) { // TODO Auto-generated method stub int a[] = {3,1,5,7,2,4,9,6}; print(a); new InsertSort()原创 2017-10-09 19:49:37 · 518 阅读 · 0 评论 -
希尔排序
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class XierSort { public static void main(String[] args) throws IOException { BufferedReader原创 2017-10-09 20:33:52 · 114 阅读 · 0 评论 -
冒泡排序
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class BubbleSort { public static void main(String[] args) throws IOException { BufferedRead原创 2017-10-09 20:46:05 · 152 阅读 · 0 评论 -
快速排序
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class KuaisuSort { public static void main(String[] args) throws IOException { BufferedRead原创 2017-10-09 21:29:19 · 128 阅读 · 0 评论 -
适配器模式
适配器模式 适配器模式(Adapter Pattern)是作为两个不兼容的接口之间的桥梁。这种类型的设计模式属于结构型模式,它结合了两个独立接口的功能。 这种模式涉及到一个单一的类,该类负责加入独立的或不兼容的接口功能。举个真实的例子,读卡器是作为内存卡和笔记本之间的适配器。您将内存卡插入读卡器,再将读卡器插入笔记本,这样就可以通过笔记本来读取内存卡。笔记本电脑充电时,电线中间就有一个原创 2017-12-13 17:25:35 · 128 阅读 · 0 评论