摘要:
现实中打牌 接收到新牌后在已有的牌里面进行排序,然后找到属于自己的位置进行插入: 手中的牌永远是有序的 Code package kb.algorithm; public class InsertionSort { public static void main(String[] args) { i 阅读全文
摘要:
Code package kb.algorithm; public class BubbleSort { public static void main(String[] args) { int[] a = new int[]{3, 6, 4, 9, 1, 7, 2, 5}; sort(a); St 阅读全文
摘要:
1、stack java语言实现stack。 package kb.algorithm; public class Stack<Item> { private Node first; private int N; public boolean empty() { return first == nu 阅读全文