题目描述:
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17...
分类:
其他好文 时间:
2014-09-18 23:50:54
阅读次数:
237
single-number-of-array-with-other-three-times
分类:
其他好文 时间:
2014-09-18 18:38:44
阅读次数:
150
原文链接:http://www.kingofcoders.com/viewNews.php?type=newsCpp&id=189&number=4836955386 在C语言里,全局变量如果不初始化的话,默认为0,也就是说在全局空间里:int x =0; 跟 int x; 的效果看起来是一样的。但...
分类:
编程语言 时间:
2014-09-18 18:26:14
阅读次数:
182
有时候某些地段太长的话就会默认显示为数字,例如ID字段过长就会显示为4.34E23的形式,遇到这样情况如何还原id字段的本身形式呢?Tools-->preference-->SQL Window右边把Number fields to _char就0k了
分类:
数据库 时间:
2014-09-18 18:14:44
阅读次数:
551
又介绍一个老朋友——instanceof。对于值类型,你可以通过typeof判断,string/number/boolean都很清楚,但是typeof在判断到引用类型的时候,返回值只有object/function,你不知道它到底是一个object对象,还是数组,还是new Number等等。这个时...
分类:
编程语言 时间:
2014-09-18 18:13:24
阅读次数:
174
select HSL.sortno, HSL.B, HSL.A, row_number() over(order by sortno desc) xh from (select t.B, t.A, case when t.B= '股份公司' then 9999999 else t.A end as....
分类:
数据库 时间:
2014-09-18 18:10:24
阅读次数:
216
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2852
KiKi's K-Number
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2668 Accepted Submi...
分类:
其他好文 时间:
2014-09-18 16:38:34
阅读次数:
194
1. ture或者false的值if判断中会被隐式转换成false的boolean类型的值有 false, 0, undefined , null , '', NaN(not a number)除此外 其他的值会被认为true, 包括 '0', 'false', 空function, 空数组([])...
分类:
编程语言 时间:
2014-09-18 12:50:43
阅读次数:
204
题目: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...
分类:
其他好文 时间:
2014-09-17 23:08:22
阅读次数:
291
好久没有做题啦,从今天开始刷Leetcode的题,希望坚持的时间能长一点。先从ac率最高的Single Number开始吧。
题目:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should hav...
分类:
其他好文 时间:
2014-09-17 20:30:53
阅读次数:
254