码迷,mamicode.com
首页 >  
搜索关键字:blue stack    ( 11517个结果
栈---链表实现
栈:是一种后进先出(LIFO)的结构,对其插入删除只能在栈顶进行;链表实现节点:#include#includetypedef struct Node *PtrToNode;typedef PtrToNode Stack;struct Node{ int Element; struct No...
分类:其他好文   时间:2014-07-07 23:48:05    阅读次数:224
【转】二叉树
package foo;import java.io.File;import java.io.FileNotFoundException;import java.util.Queue;import java.util.Scanner;import java.util.Stack;import jav...
分类:其他好文   时间:2014-07-07 18:42:45    阅读次数:142
Problem Reverse Worlds in a String
Problem Description:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Solution: ...
分类:其他好文   时间:2014-07-07 16:39:19    阅读次数:163
[leetcode] Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:其他好文   时间:2014-07-07 14:54:18    阅读次数:219
第七讲 stack
1. 栈(stack)这种数据结构在计算机中是相当出名的。栈中的数据是先进后出的(First In Last Out, FILO)。栈只有一个出口,允许新增元素(只能在栈顶上增加)、移出元素(只能移出栈顶元素)、取得栈顶元素等操作。在STL中,栈是以别的容器作为底部结构,再将接口改变,使之符合栈的....
分类:其他好文   时间:2014-06-30 13:53:53    阅读次数:185
Java的结构之美【2】——销毁对象
先来看一段代码:import java.util.Arrays; import java.util.EmptyStackException; /** * 2014年6月28日09:31:59 * @author 阳光小强 * */ public class Stack { private Object[] elements; private int size = 0; privat...
分类:编程语言   时间:2014-06-30 08:45:00    阅读次数:220
栈模拟队列 队列模拟栈
代码如下: PS:做了一些测试,目前没问题。有问题请指正。。。 {CSDN:CODE:410276} {CSDN:CODE:410278}...
分类:其他好文   时间:2014-06-30 07:57:44    阅读次数:203
常用数据结构及复杂度
本文将介绍一些常用数据结构,包括 Array, Linked List, List, HashTable, Stack, Queue 等。并同时介绍关于这些基本数据结构的常用操作的复杂度以及如何选择使用合适的数据结构。
分类:其他好文   时间:2014-06-29 20:26:01    阅读次数:406
Iterative (non-recursive) Quick Sort
An iterative way of writing quick sort:#include #include #include using namespace std;void quickSort(int A[], int n) { stack> stk; stk.push(make_pair(...
分类:其他好文   时间:2014-06-29 20:16:45    阅读次数:179
Android KeyStore Stack Buffer Overflow (CVE-2014-3100)
/* 本文章由 莫灰灰 编写,转载请注明出处。   作者:莫灰灰    邮箱: minzhenfei@163.com */ 1. KeyStore Service 在Android中,/system/bin/keystore进程提供了一个安全存储的服务。在过去的版本中,其他程序主要用过UNIX socket的守护进程/dev/socket/keystore去访问这个服务。然而...
分类:移动开发   时间:2014-06-27 23:25:30    阅读次数:476
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!