【题意】
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is...
分类:
其他好文 时间:
2014-10-26 11:49:53
阅读次数:
203
Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, ...
分类:
其他好文 时间:
2014-10-26 11:40:45
阅读次数:
111
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:
编程语言 时间:
2014-10-26 11:31:30
阅读次数:
243
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-10-26 07:58:51
阅读次数:
161
题目
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:
其他好文 时间:
2014-10-25 18:50:01
阅读次数:
137
最近学校把高考监控摄像头及其设备管理工作交于我来管理,发现一个问题就是他的设备很多,但都需要时间准确,而且时间上要同步。以前管理员说他就是在考试前把所有设备时间都要逐一的去和北京时间去手动校准,太烦了。本人想如果让所有设备都要与国家授时中心服务器或者time.wi..
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-10-25 07:04:13
阅读次数:
208
Write a function to find the longest common prefix string amongst an array of strings.题目言简意赅,貌似也不难,暴力法用一个char *数组存放strs里每个元素的起始地址,然后循环,同时把所有指针向前移动,如果有...
分类:
其他好文 时间:
2014-10-25 00:52:44
阅读次数:
265
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-10-24 23:30:05
阅读次数:
260
如何获取JavaScript中Function的名字是一个很基本的问题。可以通过将function转化成字符串,用substring取它的名字,或者使用ECMAScript 6中的Function.name的支持。此属性只有在IE下有可能不兼容。详见MDN.关于从字符串中获得其名字的方法如下 (转自...
分类:
编程语言 时间:
2014-10-24 23:27:27
阅读次数:
416