码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
LeetCode125——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: Panama" is a palindrome. "race a car" is not a p...
分类:其他好文   时间:2015-01-27 18:23:55    阅读次数:182
【leetcode】Validate Binary Search Tree
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtre...
分类:其他好文   时间:2015-01-27 00:29:27    阅读次数:205
Word Break
https://oj.leetcode.com/problems/word-break/Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequenc...
分类:其他好文   时间:2015-01-26 22:17:51    阅读次数:173
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...
分类:其他好文   时间:2015-01-26 20:56:06    阅读次数:132
leetcode------Valid Sudoku
标题:Valid Sudoku通过率:27.2%难度:简单Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where...
分类:其他好文   时间:2015-01-26 19:09:45    阅读次数:144
LeetCode | #20 Valid Parentheses
题目: 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...
分类:其他好文   时间:2015-01-25 16:44:04    阅读次数:136
POJ2992:Divisors(求N!因子的个数,乘性函数,分解n!的质因子)
题目链接:http://poj.org/problem?id=2992题目要求:Your task in this problem is to determine the number of divisors ofCnk. Just for fun -- or do you need any spe...
分类:其他好文   时间:2015-01-25 16:37:06    阅读次数:231
uva 1030 Image Is Everything(迭代更新)
uva 1030 Image Is Everything Your new company is building a robot that can hold small lightweight objects. The robot will have the intelligence to determine if an object is light enough to hold...
分类:其他好文   时间:2015-01-25 08:47:16    阅读次数:239
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?思路:1.可以用hash表记录链表中每个节点的地址,然后遍历发现重复,即有环,否则到...
分类:其他好文   时间:2015-01-24 15:43:21    阅读次数:166
Leetcode: One Edit Distance
Given two strings S and T, determine if they are both one edit distance apart.用i, j 两个指针,从左边扫到右边,两个一起走。s.charAt(i) != t.charAt(j)distance++要么i跳一格,要么j跳...
分类:其他好文   时间:2015-01-24 06:44:38    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!