在c/java中,拥有块级作用域的概念,大括号内就是一个块级作用域,在块级作用域内声明的变量,块以外不可见。C语音的块级作用域示例如下:int one =
1,two = 2;if(one < two){ int temp = 0; temp = one; one = two; ...
分类:
编程语言 时间:
2014-06-11 12:33:38
阅读次数:
258
Divide two integers without using
multiplication, division and mod operator.
其实刚开始看到这道题的时候,感觉应该是略简单。但真正开始写的时候发现了很多错误。 最开始的想法就是divisor一个一个加上去直到大于divide...
分类:
其他好文 时间:
2014-06-11 12:17:22
阅读次数:
274
测试表news表,数据量大小为150w左右,测试步骤如下1.创建第一张表news1, nsid
=750000的数据保存在news4;CREATE TABLE `news4` ( `NSID` int(11) NOT NULL, `NewsName`
varchar(100) NOT NULL, `...
分类:
数据库 时间:
2014-06-11 11:41:13
阅读次数:
436
原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given
a sorted array and a target value, return the index if the target is found. If
n...
分类:
编程语言 时间:
2014-06-11 11:28:40
阅读次数:
349
原题地址:https://oj.leetcode.com/problems/edit-distance/题意:Given
two wordsword1andword2, find the minimum number of steps required to
convertword1toword2....
分类:
编程语言 时间:
2014-06-11 08:58:49
阅读次数:
293
CAD Software RequirementsThis CAD assembly can
be opened in SolidWorks? 2007 and later versions.Assembly and Exported XML
FileIn this assembly, two ge...
分类:
其他好文 时间:
2014-06-11 08:17:18
阅读次数:
1800
Given a singly linked list where elements are
sorted in ascending order, convert it to a height balanced BST.public class
Solution { /** Convert th...
分类:
其他好文 时间:
2014-06-10 00:22:44
阅读次数:
259
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-06-10 00:01:38
阅读次数:
392
Given two integersnandk, return all possible
combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution
is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-06-08 08:08:29
阅读次数:
294
Oracle在9i引入了merge命令,
通过这个merge你能够在一个SQL语句中对一个表同时执行inserts和updates操作.
当然是update还是insert是依据于你的指定的条件判断的,Merge into可以实现用B表来更新A表数据,如果A表中没有,则把B表的数据插入A表.
MER...
分类:
数据库 时间:
2014-06-08 06:32:19
阅读次数:
238