栈和队列
Lyang0.0
这个作者很懒,什么都没留下…
展开
-
H - Pair: normal and paranormal (栈模拟)
If you find yourself in Nevada at an abandoned nuclear range during Halloween time, you’ll become awitness of an unusual show. Here Ghostbusters hold annual tests for new versions of their proton pac...原创 2019-08-08 10:37:54 · 149 阅读 · 0 评论 -
I - Ultimate Army (栈的模拟)
3 days, that's how much time the king gave Daffy to find him the ultimate army organization plan before he cuts his head off. 2 days already passed with no progress, but luckily Bugs came to the resc...原创 2019-07-26 14:46:01 · 456 阅读 · 0 评论 -
只有一端开口的瓶子(数组模拟栈)
栈就是像 "只有一端开口的瓶子" 一样的数据结构,大家可以理解为一个头部固定的数组,无论是取出数字还是放入数字,你都只能在数组末尾那一端(称为栈顶)修改。 非常喜欢数据结构的周老师又在给新加入 ACM 俱乐部的小萌新们传授他的人生经验...... 这天,周老师得到了一个乱序的全排列,其中1⋯n1⋯n共nn个数字,每个数字都恰好只出现一次。但是周老师不喜欢无序的东西,所以他总想要把这个数...原创 2019-05-03 19:21:27 · 332 阅读 · 0 评论 -
G - Rikka with Parenthesis II(括号匹配)
As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them: Correct parentheses sequences can be defined recursively...原创 2019-03-11 20:30:13 · 156 阅读 · 0 评论