2015年5月11日

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

摘要: 1、deque概述deque是一种双向开口的连续线性空间,可以在头尾两端分别做元素的插入和删除操作。deque没有容量的概念,它是动态地以分段连续空间组合而成,随时可以增加一段新的空间并链接起来。2、deque的中控器deque由一段一段的定量连续空间构成。一旦有必要在dequer前端或尾端增加新空... 阅读全文

posted @ 2015-05-11 20:15 ruan875417 阅读(154) 评论(0) 推荐(0) 编辑

【leetcode】【单链表】【142】Linked List Cycle II

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

posted @ 2015-05-11 16:22 ruan875417 阅读(112) 评论(0) 推荐(0) 编辑

【leetcode】【141】Linked List Cycle

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

posted @ 2015-05-11 15:14 ruan875417 阅读(87) 评论(0) 推荐(0) 编辑

导航