1 class Solution { 2 public: 3 void push(char c){ //插入结点 4 struct node *n=new struct node; 5 n->nex=0; 6 n->ch=c; 7 n->pre=las...
分类:
其他好文 时间:
2014-11-19 00:28:28
阅读次数:
167
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2014-11-19 00:00:09
阅读次数:
386
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-11-18 23:56:33
阅读次数:
254
题目描述:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" a...
分类:
其他好文 时间:
2014-11-18 11:54:07
阅读次数:
173
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-11-17 22:29:25
阅读次数:
242
有时候我们需要安装ruby插件的时候,会报如下错误:ERROR: Could not find a valid gem 'rdiscount' (>= 0), here is why: Unable to download data from https://rubygems.o...
分类:
其他好文 时间:
2014-11-17 17:34:59
阅读次数:
221
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2014-11-17 17:18:49
阅读次数:
183
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 n...
分类:
其他好文 时间:
2014-11-17 14:02:09
阅读次数:
146
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 n...
分类:
其他好文 时间:
2014-11-17 09:12:02
阅读次数:
179
看到这个题目的时候,首先不认识 Determine这个单词,英文不好没办法,查了下是确认的意思,然后不懂 palindrome这个单词, 查了下是回文的意思。
问题是 回文是个什么东西,官方解释: A palindrome is
a word, phrase, number,
or other sequence of characters which
reads the same b...
分类:
其他好文 时间:
2014-11-17 01:45:30
阅读次数:
220