Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-09-21 17:54:51
阅读次数:
226
思路:可用于卡特兰数一类题目。
思路: 栈。对 S 的每个字符检查栈尾,若成对,则出栈,否则,入栈。
分类:
其他好文 时间:
2014-09-21 17:11:40
阅读次数:
218
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255...
分类:
其他好文 时间:
2014-09-20 07:44:47
阅读次数:
235
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...
分类:
其他好文 时间:
2014-09-19 06:35:45
阅读次数:
233
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-09-19 04:28:05
阅读次数:
247
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-09-18 11:24:13
阅读次数:
379
[leetcode]Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases....
分类:
其他好文 时间:
2014-09-17 23:24:22
阅读次数:
198
升级vs2010到vs2012,突然发现build出来的应用程序无法运行,提示“不是有效的 win32 应用程序” or “not a valid win32 application”。参考CSDN论坛中的方法,找到下面这篇文章:http://blogs.msdn.com/b/vsnetsetup/...
分类:
移动开发 时间:
2014-09-17 20:08:52
阅读次数:
272
数独(DFS)。
很忧伤的一道题,先是剪枝的三个数组开成[9][9]导致 越界了WA。
然后就是每两组输出之间有空行,但是最后一组后面不能输出空行。PE好多次。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#def...
分类:
其他好文 时间:
2014-09-17 12:12:19
阅读次数:
274
有时候开启OGG进程的时候较慢,可能是因为需要同步的表太多,OGG在开启进程之前会将需要同步的表建立一个记录并且存入到磁盘中,这样就需要耗费大量的时间。OGG同时也提供了DYNAMICRESOLUTION | NODYNAMICRESOLUTION参数来解决这个问题,看官方如何描述的:
DYNAMICRESOLUTION | NODYNAMICRESOLUTION
Valid fo...
分类:
其他好文 时间:
2014-09-17 10:17:42
阅读次数:
167