码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
leetcode_205题——Isomorphic Strings(用的map)
Isomorphic StringsTotal Accepted:5891Total Submissions:24698My SubmissionsQuestionSolutionGiven two stringssandt, determine if they are isomorphic.Two...
分类:其他好文   时间:2015-05-07 20:10:10    阅读次数:118
LeetCode Balanced Binary Tree
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 never diffe...
分类:其他好文   时间:2015-05-07 18:57:13    阅读次数:93
[LeetCode]139.Word Break
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”, “...
分类:其他好文   时间:2015-05-07 18:56:26    阅读次数:114
LeetCode (35) 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 another c...
分类:其他好文   时间:2015-05-07 16:49:09    阅读次数:100
[LeetCode] 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 ...
分类:其他好文   时间:2015-05-07 16:48:34    阅读次数:78
[Leetcode] Happy Number
1.先上题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 in...
分类:移动开发   时间:2015-05-07 15:52:05    阅读次数:142
LeetCode (30) Palindrome Number (回文数字)
题目描述Determine whether an integer is a palindrome. Do this without extra space.Some hints: Could negative integers be palindromes? (ie, -1) —— 负数不为回文If you are thinking of converting the integer to s...
分类:其他好文   时间:2015-05-07 14:30:59    阅读次数:119
LeetCode 9 Palindrome Number
Problem: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinkin...
分类:其他好文   时间:2015-05-07 12:28:14    阅读次数:143
LeetCode Isomorphic Strings
Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ...
分类:其他好文   时间:2015-05-07 08:46:25    阅读次数:111
Word Break
https://leetcode.com/problems/word-break/Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence o...
分类:其他好文   时间:2015-05-06 19:36:19    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!