码迷,mamicode.com
首页 >  
搜索关键字:栈的应用    ( 273个结果
UVA - 112 - Tree Summing (数的求和!栈的应用!)
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 (栈的应用!)
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协议栈中OSAL运行机理
在基于zigbee协议栈的应用程序开发过程中,用户只需要实现应用层的开发即可,zigbee应用程序框架中包含了最多240个应用程序对象,每个应用程序对象运行在不同的端口上,因此端口的最作用是区分不同的应用程序对象,可以把一个应用程序对象看成为一个任务。因此,需要一个机制来实现任务的切换、同步和互斥....
分类:其他好文   时间:2014-11-11 22:41:56    阅读次数:490
【HDOJ】1274 展开字符串
栈的应用,需要注意括号前可能没有数字的情况。 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
STL栈的应用之表达式求值
.....
分类:其他好文   时间:2014-10-30 09:33:14    阅读次数:166
leetcode valid parentheses
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
栈的应用题(1)
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
数据结构 算法3.4(栈的应用) 表达式求值(stl版and数组模拟版)
问题是给出一串表达式...
分类:编程语言   时间:2014-10-17 17:02:13    阅读次数:195
表达式求值(数据结构书上栈的应用之一)
主要内容:表达式求值,提交nyoj通过。。。 思路:主要就是一个开两个栈,然后一个操作符栈,一个操作数栈。。 我的代码如下(比较简洁): /***** Author Gery ******/ #include #include #include #include #include #include #include #include #include #include #def...
分类:其他好文   时间:2014-10-09 21:25:37    阅读次数:192
273条   上一页 1 ... 23 24 25 26 27 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!