摘要:
1074. Reversing Linked List (25)时间限制300 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a constant K and a singly linked list L, you are suppo... 阅读全文
摘要:
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre... 阅读全文
摘要:
1. 插入:/*h->elements[0] is sentinel*//*最小堆*/void insert(ElementType X, Queue h){ if(isFull(h)){ Error("Queue is full"); return; } ... 阅读全文
摘要:
package sort;public class QuickSort { public static final int cutoff = 3; /** * insertion sort * * @param A * @param left * @param right */ pub... 阅读全文
摘要:
package sort;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Scanner;public class MergeSort { public static void merge... 阅读全文
摘要:
原理:N: the number of elementsvoid inser_sort(Type A[], int N){ for(P=1;P0&&A[j-1]>Tmp;j--) { A[j] = A[j-1]; } A[j] = Tmp... 阅读全文
摘要:
package bitmap;public class BitMap { private byte[] bytes; public BitMap(byte[] bytes) { super(); this.bytes = bytes; } public BitMap() { super(); ... 阅读全文
摘要:
复制于http://www.cnblogs.com/luxh/p/3506750.html做个记录一般web项目会进行分模块开发。这里简单分为domain(领域层)、persist(持久层)、service(业务层)、web(交互控制层)。 用Maven构建以上各层,结构如下: ... 阅读全文