
链表
synapse7
这个作者很懒,什么都没留下…
展开
-
UVa 127 "Accordian" Patience (模拟链表&栈)
127 - "Accordian" Patience Time limit: 3.000 seconds http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=103&page=show_problem&problem=63 You are to simulate the p原创 2013-08-02 10:44:34 · 1185 阅读 · 0 评论 -
C++ STL入门教程(2)——list(双向链表)的使用(附完整程序代码)
一、简介 Lists将元素按顺序储存在链表中。与向量(vector)相比, 它允许快速的插入和删除,但是随机访问却比较慢。(vector支持快速随机访问) 在前一篇就提到过,list可以在头部进行添加删除操作,但vector不行。 下面是几个不同于vector的函数。 remove() 从list删除元素 remove_if() 按指定条件删除元素原创 2013-08-04 22:01:49 · 2876 阅读 · 1 评论 -
UVa 402 M*A*S*H (STL&list)
402 - M*A*S*H Time limit: 3.000 seconds http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=343 Corporal Klinger is a member of the 4077t原创 2013-11-03 23:26:30 · 1834 阅读 · 0 评论 -
UVa 11988 Broken Keyboard (a.k.a. Beiju Text) (指针的"思想")
11988 - Broken Keyboard (a.k.a. Beiju Text) Time limit: 1.000 seconds http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3139 You're typi原创 2013-10-03 16:21:17 · 2323 阅读 · 0 评论