码迷,mamicode.com
首页 >  
搜索关键字:stl array    ( 35607个结果
java开始到熟悉63-65
本次内容:java常用类1、包装类 1 package array; 2 3 public class wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new Inte...
分类:编程语言   时间:2014-05-01 09:16:28    阅读次数:384
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-05-01 08:35:40    阅读次数:443
poj 2823 Sliding Window
Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 36147   Accepted: 10700 Case Time Limit: 5000MS Description An array of size n ≤ 106 i...
分类:Windows程序   时间:2014-04-29 13:45:21    阅读次数:503
红黑树容器实现(带迭代器)
上一篇文章是纯粹地实现了红黑树,但是在STL中,红黑树容器是需要迭代器实现的。故将上一篇文章改进后实现红黑树容器。 #ifndef ITERATOR_RB_TREE_H_INCLUDED #define ITERATOR_RB_TREE_H_INCLUDED #include"my_iterator_base.h" /* ** iterator_rb_tree.h 红黑树地泛型容器地迭代器 与...
分类:其他好文   时间:2014-04-29 13:45:21    阅读次数:506
stable_sort() 和 sort() 的区别
1.stable_sort 和 sort的区别在于 前者作排序可以使原来的"相同"的值在序列中的相对位置不变 如 1 4 6 7 4' (4 和 4'值相等,加上' 表示是2个元素) 那么stable_sort能保证排序完 4 仍然在4' 前 也就是输出1 4 4' 6 7;但是sort 没有这个功能,算法不能保证这一点 2.在标准算法中的一部分算法 如果这个算法默认使用的是 ...
分类:其他好文   时间:2014-04-29 13:45:20    阅读次数:273
泛型的RedBlack Tree的实现,并和STL map 做了简单的性能比较
泛型的RedBlack Tree的实现,并和STL map 做了简单的性能比较...
分类:数据库   时间:2014-04-29 13:33:20    阅读次数:459
STL 之 map 源码剖析
/* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, ...
分类:其他好文   时间:2014-04-29 13:28:21    阅读次数:398
泛型的Binary Search Tree的实现,并与STL map进行操作性能上的比较
泛型的Binary Search Tree的实现,并与STL map进行操作性能上的比较...
分类:其他好文   时间:2014-04-29 13:27:22    阅读次数:420
STL 之 multimap 源码剖析
/* * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, ...
分类:其他好文   时间:2014-04-29 13:13:21    阅读次数:309
利用内存chunk充当数据buffer的vector的实现,和STL vector 有接口操作性能比较
利用内存chunk充当数据buffer的vector的实现,和STL vector 有接口操作性能比较...
分类:其他好文   时间:2014-04-29 13:11:20    阅读次数:318
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!