计算系数 运用二项式定理,递推组合数即可,也可以用Lucas定理 注意在快速幂中(取模运算有乘法时)要*1LL,防止中途溢出 #include<bits/stdc++.h> #define fi first #define se second #define pb push_back #define ...
分类:
其他好文 时间:
2020-07-26 01:35:17
阅读次数:
75
代码: #include <iostream>#include <stack>using namespace std; int g_a_r_l_e(stack<int>&stackdata)//取栈顶元素并在栈中将其删除; //注意这里转引用,如果不传引用每次递归会传入不同的stack,这样会出现错 ...
分类:
其他好文 时间:
2020-07-26 01:27:13
阅读次数:
62
In this note,you will not find the concept of QS and the method of how to compute the cost of time and space of this algorithm。This page will not refe ...
分类:
其他好文 时间:
2020-07-26 01:23:01
阅读次数:
76
实现思路首先监听复选框,使用obj.tr返回当前行jquery节点对象,此行下有该节点的下标属性;判断复选框全选和多选:当复选框多选,将点击后的复选框的jquery的节点对象push进array数组,反选则获取反选复选框代表的节点对象,取到该节点对象下标属性值,此时再与array中数组的每一项复选框 ...
分类:
其他好文 时间:
2020-07-26 00:58:53
阅读次数:
166
ES5的数组方法: forEach() map() some() filter() every() reduce jQuery的方法的调用 对于选择器筛选的dom元素,比如$('.class')是一个伪数组jq对象,存放的dom元素,当执行addClass('active')方法,对于每个dom元素 ...
分类:
编程语言 时间:
2020-07-25 11:40:32
阅读次数:
139
VDI制备大量相同SID的虚拟机真的没事问题吗?我们来认真确认一下。
分类:
其他好文 时间:
2020-07-25 10:06:08
阅读次数:
130
此博客链接: 题目链接:https://leetcode-cn.com/problems/min-stack/submissions/ 设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素 ...
分类:
其他好文 时间:
2020-07-25 09:45:52
阅读次数:
70
长话短说,今天聊一聊使用Gitlab-CI 自动部署到远程服务器。 如果看过《》这篇文章的朋友,会注意到我是在 Gitlab-Runner服务器上自动部署的站点,本次我们结合ssh部署到远程机器(将CI服务器和部署服务器分离,避免资源抢占)。 SSH免密登陆 还是那句话,CI/CD实质是将我们手动集 ...
分类:
其他好文 时间:
2020-07-24 21:52:57
阅读次数:
101
【RN小记】解决Mac下Pod install 缓慢 或 error: RPC failed; 或 the remote end hung up unexpectedly
分类:
系统相关 时间:
2020-07-24 21:33:52
阅读次数:
174
docker 容器使用 systemctl 命令是报错 看了许多解决方案,但是对于新手来说并不友好,不是特别清楚 报错内容: System has not been booted with systemd as init system (PID 1). Can't operate. Failed t ...
分类:
其他好文 时间:
2020-07-24 16:18:05
阅读次数:
82