码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
Leetcode205——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 anot...
分类:其他好文   时间:2015-05-24 18:59:44    阅读次数:112
LeetCode: Linked List Cycle I && II
Ititle:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:使用两个指针slow,fast。两个指针都从表头开始走,slow...
分类:其他好文   时间:2015-05-24 11:25:59    阅读次数:148
[LeetCode][Java] 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 ne...
分类:编程语言   时间:2015-05-24 08:58:44    阅读次数:115
LeetCode: Word Break I && II
Ititle:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For...
分类:其他好文   时间:2015-05-23 23:53:42    阅读次数:126
Java for LeetCode 112 Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:编程语言   时间:2015-05-23 21:22:23    阅读次数:152
Java for LeetCode 110 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...
分类:编程语言   时间:2015-05-23 21:19:39    阅读次数:155
【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...
分类:其他好文   时间:2015-05-23 11:12:40    阅读次数:93
【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: Pana...
分类:其他好文   时间:2015-05-22 10:59:39    阅读次数:84
【leetcode】Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c...
分类:其他好文   时间:2015-05-22 09:24:19    阅读次数:100
【leetcode】path sum--easy
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:其他好文   时间:2015-05-22 00:04:22    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!