码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
Validate Binary Search Tree
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
Valid Palindrome
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
Word Break
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
Linked List Cycle
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
Palindrome Number (回文数)
回文数是指这样的数字:正读和倒读都是一样的。如: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
[leetcode]Path Sum @ Python
原题地址: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
LeetCode: palindromes 题解
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
Android “swipe” vs “fling”
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
关于可图化序列的一点结论 NEU 1429
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
LeetCode: Jump Game [054]
【题目】 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!