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