摘要: 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... 阅读全文
posted @ 2014-03-09 09:40 bingtel 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-03-08 13:32 bingtel 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1. 插入:/*h->elements[0] is sentinel*//*最小堆*/void insert(ElementType X, Queue h){ if(isFull(h)){ Error("Queue is full"); return; } ... 阅读全文
posted @ 2014-03-08 09:43 bingtel 阅读(222) 评论(0) 推荐(0) 编辑
摘要: package sort;public class QuickSort { public static final int cutoff = 3; /** * insertion sort * * @param A * @param left * @param right */ pub... 阅读全文
posted @ 2014-03-07 09:56 bingtel 阅读(272) 评论(0) 推荐(0) 编辑
摘要: package sort;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Scanner;public class MergeSort { public static void merge... 阅读全文
posted @ 2014-03-04 13:33 bingtel 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 原理: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... 阅读全文
posted @ 2014-03-04 10:26 bingtel 阅读(133) 评论(0) 推荐(0) 编辑
摘要: package bitmap;public class BitMap { private byte[] bytes; public BitMap(byte[] bytes) { super(); this.bytes = bytes; } public BitMap() { super(); ... 阅读全文
posted @ 2014-03-04 08:58 bingtel 阅读(2113) 评论(0) 推荐(0) 编辑
摘要: 复制于http://www.cnblogs.com/luxh/p/3506750.html做个记录一般web项目会进行分模块开发。这里简单分为domain(领域层)、persist(持久层)、service(业务层)、web(交互控制层)。 用Maven构建以上各层,结构如下: ... 阅读全文
posted @ 2014-02-27 22:16 bingtel 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 见http://download.csdn.net/detail/u010786672/6942715下载。 阅读全文
posted @ 2014-02-20 19:33 bingtel 阅读(103) 评论(0) 推荐(0) 编辑
摘要: CAS单点登录中文用户名乱码问题,有两种情况1. CAS server乱码即在向server端提交用户名和密码时,发生了乱码,解决方法是:打开WEB-INF/web.xml,在其它的Filter之前,添加 characterEncodingFilter org.spring... 阅读全文
posted @ 2014-02-20 19:10 bingtel 阅读(1791) 评论(0) 推荐(0) 编辑