03 2014 档案
摘要:转自:https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/Compiling is way to go for many but I am mostly in hurry so following works for me!A...
阅读全文
摘要:转自:点击打开链接http://www.cnblogs.com/daxin/p/3560989.htmlEhCache WebCache 与 SpringMVC集成时 CacheManager冲突的问题在使用EhCache Web组件时 需要将SimplePageCachingFilter 需要用到...
阅读全文
摘要:转自:点击打开链接最长递增子序列,Longest Increasing Subsequence 下面我们简记为 LIS。排序+LCS算法 以及 DP算法就忽略了,这两个太容易理解了。假设存在一个序列d[1..9] = 2 1 5 3 6 4 8 9 7,可以看出来它的LIS长度为5。下面一步一步试着...
阅读全文
摘要:1. MySQL的逻辑架构最上面不是MySQL特有的,所有基于网络的C/S的网络应用程序都应该包括连接处理、认证、安全管理等。中间层是MySQL的核心,包括查询解析、分析、优化和缓存等。同时它还提供跨存储引擎的功能,包括存储过程、触发器和视图等。最下面是存储引擎,它负责存取数据。服务器通过stora...
阅读全文
摘要:People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi...
阅读全文
摘要:1022. D进制的A+B (20)时间限制100 ms内存限制32000 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue输入两个非负10进制整数A和B(using namespace std;#include"algorithm"int main(){ long ...
阅读全文
摘要:1023. 组个最小数 (20)时间限制100 ms内存限制32000 kB代码长度限制8000 B判题程序Standard作者CAO, Peng给定数字0-9各若干个。你可以以任意顺序排列这些数字,但必须全部使用。目标是使得最后得到的数尽可能小(注意0不能做首位)。例如:给定两个0,两个1,三个5...
阅读全文
摘要: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(); ...
阅读全文