题目:Maximum Depth of Binary TreeGiven a binary tree,
find its maximum depth.The maximum depth is the number of nodes along the
longest path from the ro...
分类:
其他好文 时间:
2014-06-10 10:09:13
阅读次数:
237
Given an infinite number of quarters (25 cents),
dimes (10 cents), nickels (5 cents) and pennies (1 cent), find how many ways to
represent n cents.思路:...
分类:
其他好文 时间:
2014-06-09 20:04:56
阅读次数:
238
其他两次,一个一次/其他三次,一个一次/其他两次,两个一次============================================任何一个数字异或他自己都得零。注意异或运算的初始化变量为0,因为0异或任何数字都得那个数字自身。Single
Number1.一个整型数组中除了一个数字之...
分类:
其他好文 时间:
2014-06-09 19:23:56
阅读次数:
209
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given
a set of candidate numbers (C) and a target number (T), find all unique
combinations in...
分类:
编程语言 时间:
2014-06-09 17:50:09
阅读次数:
333
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given
a collection of candidate numbers (C) and a target number (T), find all unique
combi...
分类:
编程语言 时间:
2014-06-09 17:41:58
阅读次数:
320
javascript面向对象编程有几个层面:1: 单一对象 (covered inLayer 1:
Single Objects)2: 对象之间的 prototype (described inLayer 2: The Prototype
Relationship Between Objects)3...
分类:
其他好文 时间:
2014-06-09 17:00:14
阅读次数:
248
刚安装了,office2010,打开里面的access时,总是提示要配置Office single
image,但打开word和excel没问题,很是不舒服在网上找到N种方法,试下来还是不行。后来就把office2010卸掉,重新安装了一下,安装的时候,只把里面用不到的输入法、publish,out...
分类:
数据库 时间:
2014-06-09 16:52:40
阅读次数:
338
定义和用法DATEADD()
函数在日期中添加或减去指定的时间间隔。语法DATEADD(datepart,number,date)date参数是合法的日期表达式。number是您希望添加的间隔数;对于未来的时间,此数是正数,对于过去的时间,此数是负数。datepart参数可以是下列的值:datepa...
分类:
数据库 时间:
2014-06-09 15:42:33
阅读次数:
316
今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single
NumberGiven an array of integers, every element appearstwiceexcept for one. Find
that single ...
分类:
其他好文 时间:
2014-06-09 12:57:45
阅读次数:
260
下面以几个实例来说明ROW_NUMBER()函数的使用。
实例如下:1.使用row_number()函数进行编号,如selectemail,customerID,ROW_NUMBER()over(orderbypsd)asrowsfromQT_Customer原理:先按psd进行排序,排序完后,给每...
分类:
数据库 时间:
2014-06-08 19:12:56
阅读次数:
287