Given a binary tree, determine if it is a valid
binary search tree (BST).Assume a BST is defined as follows:The left subtree of
a node contains only n...
分类:
其他好文 时间:
2014-06-03 14:00:56
阅读次数:
281
Given a string, determine if it is a
palindrome, considering only alphanumeric characters and ignoring cases.For
example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-05-30 16:24:31
阅读次数:
222
Given a stringsand a dictionary of wordsdict,
determine ifscan be segmented into a space-separated sequence of one or more
dictionary words.For exampl...
分类:
其他好文 时间:
2014-05-30 16:09:32
阅读次数:
213
Given a linked list, determine if it has a
cycle in it.Follow up:Can you solve it without using extra space?/** *
Definition for singly-linked list. *...
分类:
其他好文 时间:
2014-05-30 16:08:05
阅读次数:
238
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an
integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:
其他好文 时间:
2014-05-27 23:44:17
阅读次数:
459
原题地址:https://oj.leetcode.com/problems/path-sum/题意:Given
a binary tree and a sum, determine if the tree has a root-to-leaf path such that
adding up all...
分类:
编程语言 时间:
2014-05-26 18:37:11
阅读次数:
295
Determine whether an integer is a palindrome. Do
this without extra space.Some hints:Could negative integers be palindromes? (ie,
-1)If you are thinki...
分类:
其他好文 时间:
2014-05-26 18:07:52
阅读次数:
217
onFling will get executed when a user makes a
"fling" motion, and said motion has a velocity with it to determine the type of
fling it was. However,.....
分类:
移动开发 时间:
2014-05-26 06:23:31
阅读次数:
443
Graphic SequenceA graphic sequence is a
sequence of numbers which can be thedegree sequenceof somegraph. A sequence can
be checked to determine if it ...
分类:
其他好文 时间:
2014-05-25 19:18:00
阅读次数:
331
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
For example:...
分类:
其他好文 时间:
2014-05-24 20:44:39
阅读次数:
221