LeetCode -- Valid Sudoku...
分类:
其他好文 时间:
2015-12-02 10:36:55
阅读次数:
102
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Example"A man, a plan, a canal: Panama" i...
分类:
其他好文 时间:
2015-12-02 06:38:47
阅读次数:
115
翻译数独板被部分填充,空格部分用'.'来填充。一个部分填充的数组是否有效只需要看其填充的部分即可。原文代码这道题写了一会,错了……因为输入太懒搞了,就直接看了别人写的……class Solution {
public:
int a[9];
bool isValidSudoku(vector<vector>& board) {
memset(a,0,size...
分类:
其他好文 时间:
2015-12-01 12:59:11
阅读次数:
244
Valid ParenthesesGiven a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.ExampleThe brac...
分类:
其他好文 时间:
2015-12-01 07:12:30
阅读次数:
194
题目:Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", re...
分类:
其他好文 时间:
2015-11-30 08:31:46
阅读次数:
345
[INFO] Scanning for projects...[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] -------------...
分类:
其他好文 时间:
2015-11-29 17:50:53
阅读次数:
1371
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-11-29 00:52:53
阅读次数:
154
题目:Given a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is always valid, 1 ≤ k ≤ BST's t...
分类:
其他好文 时间:
2015-11-27 00:42:42
阅读次数:
171
翻译给定一个仅仅包含“(”或“)”的字符串,找到其中最长有效括号子集的长度。对于“(()”,它的最长有效括号子集是“()”,长度为2。另一个例子“)()())”,它的最长有效括号子集是“()()”,其长度是4。原文Given a string containing just the characters '(' and ')',
find the length of the longest val...
分类:
其他好文 时间:
2015-11-26 19:15:52
阅读次数:
148
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255...
分类:
其他好文 时间:
2015-11-26 12:33:32
阅读次数:
127