json 中:元素与值用冒号 ":" 隔开元素与元素用逗号 "," 隔开{} 之间是一个对象, 对象可以层层嵌套[] 表示数组, 数组元素用逗号 "," 隔开值可以是 string、number、object、array、tr、false、null; 其中 string 要使用双引号(也有语言可以...
分类:
Web程序 时间:
2014-11-01 00:55:01
阅读次数:
318
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2014-10-31 23:35:49
阅读次数:
315
AIX操作系统中有很多程序,为了进行程序版本控制,每一个程序集都有自己的版本号。版本号是由小数点分隔的四位数字,例如5.3.0.9其含义是:操作系统版本号(version).发行版本号(release).改进版本号(modification).修正版本号(fix).最后的改进号和修正号不同的程序又经...
分类:
其他好文 时间:
2014-10-31 23:27:22
阅读次数:
293
A n * m grid as follow:
Count the number of triangles, three of whose vertice must be grid-points.
Note that the three vertice of the triangle must not be in a line(the right picture is not a...
分类:
其他好文 时间:
2014-10-31 22:20:02
阅读次数:
264
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
一开始我误解了题目的意思,以为是新建一个...
分类:
其他好文 时间:
2014-10-31 22:16:05
阅读次数:
253
SQL: SELECT /*+ parallel(a,32) */ a.id ,a.data_date ,a.mobile_num ,a.mobile_code ,b.prov AS mobile_prov ,b.city AS mobile_city ,b.mo...
分类:
其他好文 时间:
2014-10-31 22:09:57
阅读次数:
197
xstream、jaxb 精确控制日期(Date)、数字(Number)xml输出格式
分类:
其他好文 时间:
2014-10-31 21:50:07
阅读次数:
259
Given two arrays A, B with size n, you could justify the positions of number in array B to maximum the sum[abs(ai-bi)], i from 0 to n or minimize the sum[abs(ai-bi)].
--------------------------------...
分类:
编程语言 时间:
2014-10-31 20:43:45
阅读次数:
353
#include #include #include #include using namespace std;void print(vector &num) { int len = num.size(); bool value_begin = false; for (int i=...
分类:
其他好文 时间:
2014-10-31 20:37:03
阅读次数:
210
一、Dijkstra最短路径算法是从一个顶点到其余各顶点的最短路径算法,解决的是有向图中最短路径问题。迪杰斯特拉算法主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止。实现一//// Dijkstra// ACM// Find the number of minimal path////...
分类:
编程语言 时间:
2014-10-31 18:45:49
阅读次数:
254