https://leetcode.com/problems/valid-parentheses/Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if ...
分类:
编程语言 时间:
2015-05-17 18:29:30
阅读次数:
187
Isomorphic Strings Given two stringssandt, determine if they are isomorphic. Two strings are isomorphic if the characters inscan be replaced to gett.A...
分类:
编程语言 时间:
2015-05-17 18:27:27
阅读次数:
137
题目: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...
分类:
其他好文 时间:
2015-05-17 02:03:11
阅读次数:
116
题目: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 onl...
分类:
其他好文 时间:
2015-05-16 20:21:48
阅读次数:
91
SearchinRotatedSortedArrayIITotalAccepted:35100TotalSubmissions:111308MySubmissionsQuestionSolutionFollowupfor"SearchinRotatedSortedArray":Whatifduplicatesareallowed?Wouldthisaffecttherun-timecomplexity?Howandwhy?Writeafunctiontodetermineifagiventargetisint..
分类:
其他好文 时间:
2015-05-16 18:37:20
阅读次数:
158
描述:
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 character while preserving the order of characters....
分类:
其他好文 时间:
2015-05-15 09:03:17
阅读次数:
111
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-15 01:14:06
阅读次数:
125
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-14 22:10:26
阅读次数:
131
Again Prime? No time.
Input: standard input
Output: standard output
Time Limit: 1 second
The problem statement is very easy. Given a number n you have to determine the largest power of m, not ne...
分类:
其他好文 时间:
2015-05-14 20:37:11
阅读次数:
118
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-14 20:28:37
阅读次数:
115