码迷,mamicode.com
首页 >  
搜索关键字:salt stack    ( 10798个结果
linked-list 汇总
转+修改整理。import java.util.ArrayList;import java.util.Comparator;import java.util.HashMap;import java.util.PriorityQueue;import java.util.Stack;/** * htt...
分类:其他好文   时间:2014-07-12 13:05:27    阅读次数:249
CTCI 3.3
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:其他好文   时间:2014-07-12 08:23:16    阅读次数:231
CTCI 3.3
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:其他好文   时间:2014-07-12 08:22:39    阅读次数:181
Java提高篇(三一)-----Stack
在Java中Stack类表示后进先出(LIFO)的对象堆栈。栈是一种非常常见的数据结构,它采用典型的先进后出的操作方式完成的。每一个栈都包含一个栈顶,每次出栈是将栈顶的数据取出,如下: Stack通过五个操作对Vector进行扩展,允许将向量视为堆栈。这个五个操作如下: 操作 ...
分类:编程语言   时间:2014-07-11 20:49:51    阅读次数:360
CTCI 3.1
Describe how you could use a single array to implement three stacks.Divide the array into three fixed parts, each stands for a stack./*Fixed Size Stac...
分类:其他好文   时间:2014-07-11 10:45:34    阅读次数:189
C++中出现的计算机术语4
adaptor(适配器)  一种标准库类型、函数或迭代器,使某种标准库类型、函数或迭代器的行为类似于另外一种标准库类型、函数或迭代器。系统提供了三种顺序容器适配器:stack(栈)、queue(队列)以及priority_queue(优先级队列)。所有的适配器都会在其基础顺序容器上定义一个新接口。 begin(begin 操作) 一种容器操作。如果容器中有元素,该操作返回指向容器中第一...
分类:编程语言   时间:2014-07-11 00:41:21    阅读次数:315
初探STL之容器适配器
容器适配器   用某种顺序容器来实现...
分类:其他好文   时间:2014-07-10 22:54:09    阅读次数:207
CTCI 3.2
How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop and min should a...
分类:其他好文   时间:2014-07-10 16:45:33    阅读次数:210
hdu1427 速算24点
枚举两个数字进行运算,将运算结果加入数组末尾后继续枚举 当数组中有7个数字之后表示运算完成 //#pragma comment(linker, "/STACK:102400000,102400000") //HEAD #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2014-07-09 12:29:00    阅读次数:168
点集配对问题
点集配对问题  空间里n个点,使它们配成n/2对点,使得每个点恰好在一个点对中。 要求所有点队中,两点距离之和尽量下  n d(s) = min(d{S - {i} - {j}+ |Pi Pj|  | j属于S, j > i, i = min{S}} //#pragma comment(linker, "/STACK:102400000,102400000") //HEAD...
分类:其他好文   时间:2014-07-09 10:19:06    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!