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
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
题目:
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
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
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
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
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
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
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
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