码迷,mamicode.com
首页 >  
搜索关键字:peek    ( 239个结果
[LeetCode]Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front element.empty(...
分类:其他好文   时间:2015-07-18 11:03:29    阅读次数:99
上位机的poke()、peek()、写SPI函数实现以及控制信息的发送(VRT Context包)
lib/usrp/common/fifo_ctrl_excelsior.cpp /******************************************************************* * Peek and poke 32 bit implementation *****************************************...
分类:其他好文   时间:2015-07-15 13:21:57    阅读次数:187
(LeetCode)用两个栈实现一个队列
LeetCode上面的一道题目,原文如下: Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- G...
分类:其他好文   时间:2015-07-14 11:23:27    阅读次数:131
Implement Queue using Stacks(用栈实现队列)
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front element.empty(...
分类:其他好文   时间:2015-07-11 16:48:45    阅读次数:86
LeetCode232:Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) – Push element x to the back of queue. pop() – Removes the element from in front of queue. peek() – Get the front element. empty() –...
分类:其他好文   时间:2015-07-10 23:44:01    阅读次数:153
LeetCode232 Implement Queue using Stacks Java 题解
题目: Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front eleme...
分类:编程语言   时间:2015-07-09 14:40:55    阅读次数:117
[LeetCode] Implement Queue using Stacks
Implement Queue using Stacks Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek()...
分类:其他好文   时间:2015-07-08 22:37:27    阅读次数:176
LeetCode 232: Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front of queue.peek() -- Get the front element.empty(...
分类:其他好文   时间:2015-07-07 22:55:28    阅读次数:133
Leetcode 232 Implement Queue using Stacks 和 231 Power of Two
1. 232 Implement Queue using Stacks1.1 问题描述  使用栈模拟实现队列。模拟实现如下操作:    push(x). 将元素x放入队尾。 pop(). 移除队首元素。 peek(). 获取队首元素。 empty(). 判断队列是否为空。 注意:只能使用栈的标准操作,push,pop,size和empty函数。1.2 方法与思路   本题和用队列实现栈思路一样,设...
分类:其他好文   时间:2015-07-07 11:07:50    阅读次数:112
泛型容器单元(Generics.Collections)[3]: TStack<T> 堆栈列表
TQueue 和 TStack, 一个是队列列表, 一个是堆栈列表; 一个是先进先出, 一个是先进后出.TStack 主要有三个方法、一个属性:Push(压栈)、Pop(出栈)、Peek(查看下一个要出栈的元素);Count(元素总数).本例效果图:代码文件:unit Unit1;interface...
分类:其他好文   时间:2015-06-27 15:48:12    阅读次数:125
239条   上一页 1 ... 18 19 20 21 22 ... 24 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!