麻烦各位朋友帮忙顶一下增加人气,如有错误或疑问请留言纠正,谢谢
Simplify Path
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
click ...
分类:
其他好文 时间:
2015-02-10 11:25:37
阅读次数:
207
麻烦各位朋友帮忙顶一下增加人气,如有错误或疑问请留言纠正,谢谢
Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2015-02-10 11:25:23
阅读次数:
329
麻烦各位朋友帮忙顶一下增加人气,如有错误或疑问请留言纠正,谢谢
Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.
pop() -- R...
分类:
其他好文 时间:
2015-02-10 11:24:39
阅读次数:
113
麻烦各位朋友帮忙顶一下增加人气,如有错误或疑问请留言纠正,谢谢
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must clo...
分类:
其他好文 时间:
2015-02-10 11:23:26
阅读次数:
123
欢迎转载,如有错误或疑问请留言纠正,谢谢
Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and w...
分类:
其他好文 时间:
2015-02-08 18:16:36
阅读次数:
199
欢迎转载,如有错误或疑问请留言纠正,谢谢
Sqrt(x)
Implement int sqrt(int x).
Compute and return the square root of x.
//vs2012测试代码
//using binary search to solve sqrt(x)
//alternative method: newton me...
分类:
其他好文 时间:
2015-02-08 16:55:02
阅读次数:
171
欢迎转载,如有错误或疑问请留言纠正,谢谢
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
I...
分类:
其他好文 时间:
2015-02-08 12:57:17
阅读次数:
171
NLS_LENGTH_SEMANTICS参数是一个专为创建CHAR和VARCHAR2两种字符型的列时,指定使用的字节长度,还是使用字符长度的定义方式,有byte和char两种值,默认为byte。
当设置该参数为BYTE时,定义CHAR列或VARCHAR2列采用字节长度方式;当设置该参数为CHAR时,定义CHAR列或VARCHAR2列采用字符长度的方式。该参数对于数据库中已经存在的列不具备任何用途,只是在创建表,或修改表的列时才具有意义。...
分类:
数据库 时间:
2015-02-08 10:23:58
阅读次数:
214
新手入门,如果错误请留言纠正,谢谢
Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are give...
分类:
其他好文 时间:
2015-02-08 09:07:30
阅读次数:
134
这几天和师傅学太极,在师傅的带领下打了几遍,然后老师看我们打太极。一些很熟悉的动作,被老师纠正了无数的问题。
揽雀尾的“按”,一个很简单的工作,我的手和腿很难做到同步协调,总是习惯性的脚比较快,手比较慢。 师傅纠正了我无数次,可是我还是很难做到手眼脚的协调。拳友们都在看着我,压力非常大……今天晚上,开车从提香别墅旁边路过,边上开了一家水果店,我媳妇说,这家水果店生意真好。 我突然感觉到,...
分类:
其他好文 时间:
2015-02-07 23:04:18
阅读次数:
159