1. 安装 stack 1) 下载对应的 install.exe 安装 stack https://docs.haskellstack.org/en/stable/README/ 2) 更改镜像源 cmd > stack install 生成 c:/sr 这个文件夹 c:/sr/config.yam ...
代码: #include <iostream>#include <stack># include <string>#include <stdexcept> using namespace std; class My_Queue{public: My_Queue(){}; ~My_Queue(){}; ...
分类:
编程语言 时间:
2020-07-25 23:40:07
阅读次数:
72
有的时候,表格自带的数据根本没有办法满足我们,我们经常会新加一列数据或者对原有的数据进行修改 还是接着上篇文章的数据进行操作 直接赋值 我想算一下每一天的温差 df.loc[:, 'wencha'] = df['wendu_max'] - df['wendu_min'] wendu_min wend ...
分类:
其他好文 时间:
2020-07-25 23:18:06
阅读次数:
78
此博客链接: 题目链接:https://leetcode-cn.com/problems/min-stack/submissions/ 设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素 ...
分类:
其他好文 时间:
2020-07-25 09:45:52
阅读次数:
70
一、提取单独的css文件 前面学习的过程中,用css-loader和style-loader来处理css文件,是通过在html中创建style标签把css放进去的。为了能把css单独的打包成css文件,则不能用前面的方法。 需要用到mini-css-extract-plugin插件,去掉style- ...
分类:
Web程序 时间:
2020-07-25 09:34:44
阅读次数:
102
代码: #include <iostream> #include <stack> # include <string> #include <stdexcept> using namespace std; class my_stack { public: my_stack(){}; ~my_stack ...
分类:
编程语言 时间:
2020-07-25 09:28:16
阅读次数:
67
给定一个非负整数数组和一个整数 m,你需要将这个数组分成 m 个非空的连续子数组。设计一个算法使得这 m 个子数组各自和的最大值最小。 注意: 数组长度 n 满足以下条件: 1 ≤ n ≤ 1000 1 ≤ m ≤ min(50, n) 示例: 输入: nums = [7,2,5,10,8] m = ...
分类:
编程语言 时间:
2020-07-25 09:27:00
阅读次数:
73
#include <algorithm> #include <string> #include <cstring> #include <vector> #include <map> #include <stack> #include <set> #include <queue> #include < ...
分类:
其他好文 时间:
2020-07-24 23:42:50
阅读次数:
81
Dijkstra's algorithm is one of the very famous greedy algorithms. It is used for solving the single source shortest path problem which gives the short ...
分类:
其他好文 时间:
2020-07-24 21:53:35
阅读次数:
107
题意:有n个商店,卖k种物品,有m个供应商,不同的供货商存货不同,不同商店对不同需求量也不同,运输的费用也不同,求满足所有店主要求的最小运输费用。 分析:样例中的数据解释:。 供应是否满足需求的条件? 1.每种物品的总供应量>=每种物品的总需求量 如何求k种物品的总的最小费用?我们可以跑k次费用流, ...
分类:
其他好文 时间:
2020-07-24 21:51:33
阅读次数:
64