题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?代码:oj在线测试通过Runtime:416 ms 1 # Definitio...
分类:
编程语言 时间:
2014-12-26 16:37:09
阅读次数:
220
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2014-12-25 22:07:37
阅读次数:
330
题目:
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the tot...
分类:
编程语言 时间:
2014-12-25 20:35:04
阅读次数:
197
Given a string containing just the characters '(', ')',
'{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid b...
分类:
其他好文 时间:
2014-12-25 16:25:57
阅读次数:
123
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.ExampleGiv...
分类:
其他好文 时间:
2014-12-25 01:25:31
阅读次数:
368
描述:Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thi...
分类:
其他好文 时间:
2014-12-24 19:57:39
阅读次数:
127
【题目】
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node n...
分类:
其他好文 时间:
2014-12-24 16:23:25
阅读次数:
200
TWebBrowser: Determine when a page with Frames is completed6comments. Current rating:(3 votes). Leave comments and/ or rate it.Question:If I load a we...
分类:
Web程序 时间:
2014-12-24 13:06:55
阅读次数:
139
Given an array, determine whether there are three elements A[i],A[j],A[k], such that A[i]A[twoLen]) return true; 9 if (twoLen!=-1 && A[i]>...
分类:
其他好文 时间:
2014-12-24 06:25:20
阅读次数:
202
同样的雪花时间限制:1000ms | 内存限制:65535KB难度:4描写叙述You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this ...
分类:
其他好文 时间:
2014-12-23 18:59:22
阅读次数:
155