
oj_data structure
文章平均质量分 76
昆libra
这个作者很懒,什么都没留下…
展开
-
南阳理工OJ题目2-------------括号配对问题 栈的使用
描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No样例输入3[(])(])([[]()])样例输出NoNoYes左括号以及空栈是PUSH,否则判断是否匹配,若匹配POP最后原创 2012-08-11 18:12:43 · 2142 阅读 · 0 评论 -
hdoj1022------------------Train Problem I---栈
Problem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is原创 2012-08-14 10:09:16 · 619 阅读 · 0 评论 -
BNUOJ 26182 -----------Army Buddies 用结构体 仿双向链表的简单操作
Nlogonia is fighting a ruthless war against the neighboring country of Cubiconia. The Chief General of Nlogonia's Army decided to attack the enemy with a linear formation of soldiers, that would advan原创 2012-08-15 21:18:24 · 2727 阅读 · 0 评论