2015年5月13日

【leetcode】【单链表】【19】Remove Nth Node From End of List

摘要: #includeusing namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution {public: ListNode* remo... 阅读全文

posted @ 2015-05-13 16:42 ruan875417 阅读(142) 评论(0) 推荐(0) 编辑

【leetcode】【单链表】【203】Remove Linked List Elements

摘要: #includeusing namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {}};class Solution {public: ListNode* remo... 阅读全文

posted @ 2015-05-13 15:59 ruan875417 阅读(105) 评论(0) 推荐(0) 编辑

【STL源码剖析读书笔记】【第4章】序列式容器之stack和queue

摘要: 一、stack1、stack概述stack是一种先进后出(First In LastOut,FILO)的数据结构,它只有一个出口。stack允许新增元素,移除元素、取得最顶端元素,但不允许有遍历行为。由于stack系以底部容器完成其所有工作,而具有这种“修改某物接口,形成另一种风貌”之性质者,称为a... 阅读全文

posted @ 2015-05-13 13:59 ruan875417 阅读(211) 评论(0) 推荐(0) 编辑

导航