码迷,mamicode.com
首页 >  
搜索关键字:pop    ( 7643个结果
155. Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov ...
分类:其他好文   时间:2020-03-31 22:46:01    阅读次数:62
leetccode 225. 用队列实现栈(两个队列模拟)
使用队列实现栈的下列操作: push(x) -- 元素 x 入栈pop() -- 移除栈顶元素top() -- 获取栈顶元素empty() -- 返回栈是否为空注意: 你只能使用队列的基本操作-- 也就是 push to back, peek/pop from front, size, 和 is e ...
分类:其他好文   时间:2020-03-31 19:26:48    阅读次数:100
leetcode 381 Insert Delete GetRandom O(1) - Duplicates allowed
class RandomizedCollection { unordered_map<int,unordered_set<int>> m; vector<int> vals; public: /** Initialize your data structure here. */ Randomized ...
分类:其他好文   时间:2020-03-31 12:39:20    阅读次数:61
使用筛选器和SEH处理异常
平时程序发生异常都是系统来处理的,但是Windows其实也允许让我们自己来处理异常。第一种方法就是使用筛选器处理异常。 筛选器处理异常的方式是指定一个异常回调函数,当程序发生异常的时候,系统就会去调用这个函数,然后在函数里面我们可以自己来处理这个异常,可以选择退出或者是跳转到安全的地方执行代码。或者 ...
分类:其他好文   时间:2020-03-30 21:17:54    阅读次数:77
JavaScript数组的基本操作
介绍了JavaScript数组的基本操作以及用原生JS方法重构这些方法 ...
分类:编程语言   时间:2020-03-30 20:01:46    阅读次数:90
如何设置IMAP、POP3/SMTP及其SSL加密方式?
如何设置IMAP、POP3/SMTP及其SSL加密方式? 如果您的电子邮件客户端支持SSL,可以在设置中选择使用SSL。 通用配置参数: (我们已经默认都支持这些协议,用户无需自己手动开启这些服务器与端口) POP3/SMTP协议 接收邮件服务器:pop.exmail.qq.com ,使用SSL,端 ...
分类:其他好文   时间:2020-03-30 19:17:05    阅读次数:66
CentOS7源码安装Nginx
环境: 1 [root@gz01-nginx-proxy-master ~]# uname -r 2 3.10.0-693.el7.x86_64 3 [root@gz01-nginx-proxy-master ~]# cat /etc/redhat-release 4 CentOS Linux re ...
分类:其他好文   时间:2020-03-30 00:16:59    阅读次数:91
leetcode 1162. 地图分析(bfs)
你现在手里有一份大小为 N x N 的『地图』(网格) grid,上面的每个『区域』(单元格)都用 0 和 1 标记好了。其中 0 代表海洋,1 代表陆地,你知道距离陆地区域最远的海洋区域是是哪一个吗?请返回该海洋区域到离它最近的陆地区域的距离。 我们这里说的距离是『曼哈顿距离』( Manhatta ...
分类:其他好文   时间:2020-03-29 18:07:14    阅读次数:73
402. Remove K Digits
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:其他好文   时间:2020-03-29 11:03:55    阅读次数:74
数据结构总结
一.思维导图 二.重要概念 1.算法 (1)评价算法的优劣性:时间复杂度(随问题规模变化)和空间复杂度(随占用额外的存储空间变化) 2.链表 (1)头插法与尾插法 3.栈 (1).栈的插入与删除是对栈顶操作的,插入要判断是否栈满,删除要判断是否栈空 (2).栈的基本操作为push(入栈)和pop(出 ...
分类:其他好文   时间:2020-03-29 10:42:07    阅读次数:70
7643条   上一页 1 ... 49 50 51 52 53 ... 765 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!