码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
[leetcode] Isomorphic Strings
Isomorphic StringsGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All...
分类:其他好文   时间:2015-05-04 11:38:46    阅读次数:140
Validate Binary Search Tree -- leetcode
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 nodes with keys less than the node's key.Th...
分类:其他好文   时间:2015-05-04 10:12:08    阅读次数:100
leetcode || 139、Word Break
problem: 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 = "leetco...
分类:其他好文   时间:2015-05-04 10:04:14    阅读次数:96
【Valid Palindrome】cpp
题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: P...
分类:其他好文   时间:2015-05-03 23:27:29    阅读次数:113
[LeetCode]Isomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with a...
分类:其他好文   时间:2015-05-03 22:08:21    阅读次数:106
LeetCode OJ 205 Isomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with anoth...
分类:其他好文   时间:2015-05-03 14:42:39    阅读次数:126
leetcode-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 "()[]{}" ar...
分类:其他好文   时间:2015-05-03 14:42:13    阅读次数:193
202. Happy Number Leetcode Python
Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...
分类:移动开发   时间:2015-05-03 10:43:52    阅读次数:145
【leetcode】Search in Rotated Sorted Array II
What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function to determine if a given target is in the array....
分类:其他好文   时间:2015-05-02 12:28:06    阅读次数:128
LeetCode Valid Palindrome
1.题目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 pali...
分类:其他好文   时间:2015-05-01 18:46:29    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!