码迷,mamicode.com
首页 >  
搜索关键字:implement stack usin    ( 11956个结果
[leetcode] Implement strStr()
Implement strStr().
分类:其他好文   时间:2014-06-27 12:37:14    阅读次数:198
[leetcode] [leetcode] String to Integer (atoi)
Implement atoi to convert a string to an integer.
分类:其他好文   时间:2014-06-27 12:08:39    阅读次数:143
堆和栈
1 区堆和栈1.1 内存分配 一个由C/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap)— 由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收。...
分类:其他好文   时间:2014-06-26 17:16:08    阅读次数:216
Devstack: A copy of worked local.conf I'm sharing with you.
# Sample ``local.conf`` for user-configurable variables in ``stack.sh`` # NOTE: Copy this file to the root ``devstack`` directory for it to # work properly. # ``local.conf`` is a user-maintained set...
分类:其他好文   时间:2014-06-26 11:41:09    阅读次数:272
LeetCode: Single Number [136]
【题目】 Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? 【题意】 给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:其他好文   时间:2014-06-26 10:13:27    阅读次数:254
[LeetCode]LRU Cache有个问题,求大神解答
题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v...
分类:其他好文   时间:2014-06-25 14:12:42    阅读次数:214
xlat指令...
1 ;就是一个串str1, lea ebx, str1 然后我们ebx+1总是加上的是一个字节, 无论(串是word, byte, dword) 2 .386 3 .model flat 4 .stack 4096 5 include io.h 6 ExitProcess proto near32....
分类:其他好文   时间:2014-06-25 11:49:37    阅读次数:205
STL之stack适配器的实现框架
一提到适配器(adapter),我们就想到了早期用电话线上网所用的调制解调器,俗称“猫”,“猫”的作用是实现数模转化和模数转化,在客户端,它可以将电话的模拟信息转化为我们计算机能够接收的数字信息,所以猫相当于一个转换器。再举个更加好理解的例子来说明"适配器“的含义。相信在我们每个人的家里都有插排,假设就这么一种情况,现在我们家里的墙壁上只有一个三角的插口,而我们的电视却是两个口,怎么办?毫无疑问,我们可以接一个新的插排,该插排至少有两个孔,一个是用于连接墙壁上的三角的插口,一个则是提供给电视剧用的两口的插口...
分类:其他好文   时间:2014-06-25 10:55:59    阅读次数:285
C# Heap(ing) Vs Stack(ing) in .NET
堆栈详解:http://wenku.baidu.com/link?url=X2J1DAFEl4RLoEGzaIEHqT9FlDRH3cACnucTwkn0pUcbF_zUxjmyW44qNVfOC3ZIBPDQ_vIoBLA8_1CECIXydWpzUjKSBfbJaySACyxDXx7
分类:Web程序   时间:2014-06-25 09:05:26    阅读次数:170
算法8-8:最短路径性质
在计算最短路径之前,往往会先计算最短路径树,也就是计算从一个顶点出发,到其余所有顶点的最短距离。 有了最短路径树之后,路径和距离就非常容易实现了: public double distTo(int v) { return distTo[v]; } public Iterable pathTo(int v) { Stack result = new Sta...
分类:其他好文   时间:2014-06-25 08:16:29    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!