最新文章列表

LeetCode 239 - Sliding Window Maximum

A long array A[] is given to you. There is a sliding window of size w which is moving from the very left of the array to the very right. You can only see the w numbers in the window. Each time the sl ...
yuanhsh 评论(0) 有3832人浏览 2015-03-12 05:17

ArrayDeque 源码分析

ArrayDeque不是线程安全的。 ArrayDeque不可以存取null元素,因为系统根据某个位置是否为null来判断元素的存在。 当作为栈使用时,性能比Stack好;当作为队列使用时,性能比LinkedList好。 1. 两个重要的索引:head和tail // 第一个元素的索引 private transient int head; // 下个要添加元素的位 ...
czj4451 评论(0) 有4515人浏览 2013-01-24 16:47

C++学习总结2

这篇记录下容器的知识:C++标准库中的容器大概分为:顺序容器和关联容器。容器元素要求:复制和赋值(IO对象就不行)顺序容器有:vector、list、deque、st ...
shellwell 评论(0) 有1417人浏览 2012-05-04 14:17

最近博客热门TAG

Java(141741) C(73643) C++(68602) SQL(64557) C#(59604) XML(59131) HTML(59042) JavaScript(54916) .net(54782) Web(54511) 工作(54116) Linux(50906) Oracle(49861) 应用服务器(43285) Spring(40811) 编程(39452) Windows(39380) JSP(37540) MySQL(37266) 数据结构(36420)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics