http://developer.51cto.com/art/201307/404612.htm150M active users300K Qps (read,
only 6000 write/s)22MB/s triffic800 redis server. (use redis list)内部组...
分类:
Web程序 时间:
2014-05-14 03:50:34
阅读次数:
365
Firefox下table的td元素如果使用了display:‘block‘会使得table变形,原因是block会将对象强制作为块对象呈递,为对象之后添加新行,所以并不适合td,改成display:‘‘ 就可以了,
由于display属性设置为空时,默认为显示,而不死块对象传递,所以就会按照table默认的方式呈现....
分类:
其他好文 时间:
2014-05-13 07:58:55
阅读次数:
277
数据库脚本(注意测试时先add-->load-->update-->delete-->list)UserMapper版--
---------------------------------------------------------- 主机: ...
分类:
移动开发 时间:
2014-05-12 22:29:59
阅读次数:
463
You are given a string, S, and a list of words,
L, that are all of the same length. Find all starting indices of substring(s) in
S that is a concatena...
分类:
其他好文 时间:
2014-05-12 22:27:04
阅读次数:
265
对于ms sqlserver数据库中可以直接使用top(n)提取前N
个结果,而oracle中并不能直接使用的。oracle中提供了对于提取前N 条的结果的方法 那就是用行编号例如:select
[column_list],ROWNUM from ( select [colum...
分类:
数据库 时间:
2014-05-12 22:14:41
阅读次数:
429
1.参考图像列表(reference picture list)
一般来说,h.264会把需要编码的图像分为三种类型:I、P、B,其中的B、P类型的图像由于采用了帧间编码的这种编码方式,而帧间编码又是以参考图像为基础进行的,因此需要有个参考图像列表来管理之前生成的参考图像,方便用于对当前图像进行.....
分类:
其他好文 时间:
2014-05-12 21:16:14
阅读次数:
435
原题地址:http://oj.leetcode.com/problems/convert-sorted-list-to-binary-search-tree/题意:将一条排序好的链表转换为二叉查找树,二叉查找树需要平衡。解题思路:两个思路:一,可以使用快慢指针来找到中间的那个节点,然后将这个节点作为...
分类:
编程语言 时间:
2014-05-12 21:07:00
阅读次数:
405
邻接矩阵的图示:
构建一个这样的无向邻接矩阵。
参考网站: http://www.geeksforgeeks.org/graph-and-its-representations/
这里写了个类,增加删除图的操作。
#pragma once
#include
#include
class AdjListGraph
{
struct Node
{
int dest;
...
分类:
其他好文 时间:
2014-05-11 22:44:20
阅读次数:
378
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151
For each list of words, output a line with each word reversed without changing the order of the words.
This problem contains multi...
分类:
其他好文 时间:
2014-05-11 22:20:43
阅读次数:
443