码迷,mamicode.com
首页 >  
搜索关键字:pop    ( 7643个结果
JS-数组与伪数组
数组与伪数组 把符合以下条件的对象称为伪数组: 具有length属性 按索引方式存储数据 不具有数组的push,pop等方法 伪数组(类数组):无法直接调用数组方法或期望length属性有什么特殊的行为,不具有数组的push,pop等方法,但仍可以用数组遍历方法来遍历它们。典型的是函数的 参数,还有 ...
分类:编程语言   时间:2019-11-10 11:50:37    阅读次数:99
[LC] 84. Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:其他好文   时间:2019-11-10 10:13:49    阅读次数:82
AcWing STL初步学习
vector, 变长数组,倍增的思想 size() 返回元素个数 empty() 返回是否为空 clear() 清空 front()/back() push_back()/pop_back() begin()/end() [] 支持比较运算,按字典序 pair<int, int> first, 第一 ...
分类:Windows程序   时间:2019-11-10 10:10:50    阅读次数:86
[LC] 224. Basic Calculator
Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or ...
分类:其他好文   时间:2019-11-10 09:34:42    阅读次数:95
栈的函数测试
#include<stdio.h> #include<stdlib.h> #define ok 1 #define error 0 #define overflow -2 typedef struct { int *base,*top; int stacksize; }sqstack; int in ...
分类:其他好文   时间:2019-11-09 20:08:08    阅读次数:108
剑指Offer-5.用两个栈实现队列(C++/Java)
题目: 用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。 分析: 栈的特点是先进后出,队列的特点则是先进先出。 题目要求我们用两个栈来实现一个队列,栈和队列都有入栈(入队)的操作,所以我们可以使用一个栈来模拟入队的操作,另一个栈用来负责出队。 利用stack1模拟 ...
分类:编程语言   时间:2019-11-09 19:44:32    阅读次数:96
Java校招面试 G歌面试官亲授
Java校招面试 G歌面试官亲授 列表数组 链表 队列,栈 树二叉树 搜索树 堆/优先队列 栈/队列/优先队列push(1);push(3);push(2);pop();pop();pop();栈:2;3;1队列:1;3;2优先队列:1;2;3Map<K,V>/Set<K>HashMap/HashS ...
分类:编程语言   时间:2019-11-09 15:49:50    阅读次数:95
idea中默认maven下载慢
一 将idea默认仓库改为国内仓库 修改settings.xml改为阿里云的仓库 <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public ...
分类:其他好文   时间:2019-11-09 11:33:00    阅读次数:69
用两个栈实现队列
用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。 https://www.nowcoder.com/questionTerminal/54275ddae22f475981afa2244dd448c6 做法: 1)总是在stack1中push元素‘ 2)当stack ...
分类:其他好文   时间:2019-11-09 00:32:08    阅读次数:81
Arctic Network POJ - 2349
题目链接:https://vjudge.net/problem/POJ-2349 思路: 题目说,有很多个网络点,每个网络点需要雷达相连,题目还会给指定数量的超级雷达, 每两个超级雷达直接可以直接连接,且没有距离限制,问能使得所有网络点相连, 雷达信号最小半径需要多大。我们可以直接跑一次最小生成树, ...
分类:Web程序   时间:2019-11-08 21:18:34    阅读次数:115
7643条   上一页 1 ... 95 96 97 98 99 ... 765 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!