preface:leetcode练习
question:1.Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numb...
分类:
编程语言 时间:
2015-04-01 17:42:22
阅读次数:
170
logstash中的类型
array
boolean
bytes
codec
hash
number
password
path
string
arrayAn array can be a single string value or multiple values. If you specify the same setting multiple times, it appends to the...
分类:
其他好文 时间:
2015-04-01 17:38:19
阅读次数:
161
#include main(){ int i,x,y,z,number,result,input,total=0,times; int accuracy; srand(time(NULL)); printf("请输入出题的数目:(除数结果取整数)"); scanf("%...
分类:
其他好文 时间:
2015-04-01 16:48:47
阅读次数:
155
??
问题描述:
The string
"PAYPALISHIRING" is written in
a zigzag pattern on agiven number of rows like this: (you may want to display this pattern in afixed font for better legibility)
...
分类:
其他好文 时间:
2015-04-01 15:23:45
阅读次数:
148
#include #include #include #include #include #define MAX 10pthread_t thread[2];pthread_mutex_t mut;int number=0,i;void *thread1(){while(1){number=i;pr...
分类:
编程语言 时间:
2015-04-01 15:00:02
阅读次数:
193
在说JSON之前,我们先来看一下在javascript中创建对象的方式,也就是创建对象的字面量表示法。我们知道js中有五种基本的数据类型,分别是: Undefined(变量可能没有声明或者赋值) Null(为空,没有添加引用) Boolean(布尔类型) Number(数值类型); Obeject(...
分类:
Web程序 时间:
2015-04-01 12:57:59
阅读次数:
228
public Map getInWareHouseReport(int i, int j, InWareHouse inWareHouse) { //查询分组后总条数 String countquery="select WS_SKU_ID,sum(IN_NUMBER),sum(WH_MONEY).....
分类:
数据库 时间:
2015-04-01 12:55:09
阅读次数:
229
Queries for Number of PalindromesProblem's Link: http://codeforces.com/problemset/problem/245/HMean:给你一个字符串,然后q个询问:从i到j这段字符串中存在多少个回文串。analyse:dp[i][j]...
分类:
其他好文 时间:
2015-04-01 12:54:27
阅读次数:
110
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2.
(each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:...
分类:
其他好文 时间:
2015-04-01 11:29:06
阅读次数:
143
Path:新生赛
A.Number Sequence
Description:
A number sequence is defined as follows:
f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.
Given A, B, and n, you are to calculat...
分类:
其他好文 时间:
2015-04-01 09:36:58
阅读次数:
150