最新文章列表

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) 有3793人浏览 2015-03-12 05:17

ArrayDeque 源码分析

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

C++学习总结2

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

最近博客热门TAG

Java(141747) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics