UVA - 112
Tree Summing
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Tree Summing
...
分类:
其他好文 时间:
2014-12-18 22:23:56
阅读次数:
526
UVA - 673
Parentheses Balance
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Parentheses Balance...
分类:
其他好文 时间:
2014-12-18 20:48:22
阅读次数:
283
一:写一个算法将栈里的元素升序排列。栈的实现未知,算法只能借助栈完成,可使用的函数有push、pop、top、empty等。思路:可借助另外一个栈来完成排序。1、从原始栈里依次弹出元素放入辅助栈;2、每当将要压入的元素是得辅助栈不是升序排列,就将辅助栈里面的元素重新压入原始栈中;3、直到辅助栈里面的...
分类:
编程语言 时间:
2014-11-12 16:12:31
阅读次数:
281
在基于zigbee协议栈的应用程序开发过程中,用户只需要实现应用层的开发即可,zigbee应用程序框架中包含了最多240个应用程序对象,每个应用程序对象运行在不同的端口上,因此端口的最作用是区分不同的应用程序对象,可以把一个应用程序对象看成为一个任务。因此,需要一个机制来实现任务的切换、同步和互斥....
分类:
其他好文 时间:
2014-11-11 22:41:56
阅读次数:
490
栈的应用,需要注意括号前可能没有数字的情况。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 #define MAXN 30010 #define ...
分类:
其他好文 时间:
2014-10-30 18:48:18
阅读次数:
115
1, 堆栈的应用,算是很经典的题目2,记得给stack 设置类型,否则就是objectpublic class Solution { public boolean isValid(String s) { if(s.length()==0||s.length()==1){ ...
分类:
其他好文 时间:
2014-10-29 07:03:16
阅读次数:
192
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all va...
分类:
其他好文 时间:
2014-10-22 22:02:58
阅读次数:
227
主要内容:表达式求值,提交nyoj通过。。。
思路:主要就是一个开两个栈,然后一个操作符栈,一个操作数栈。。
我的代码如下(比较简洁):
/*****
Author Gery
******/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#def...
分类:
其他好文 时间:
2014-10-09 21:25:37
阅读次数:
192