解决 TOP k 问题通常可采用 堆排序 和 快速排序的思想 1. 大根堆(前 K 小) / 小根堆(前 K 大): 时间复杂度O(NlogK) c++ STL 中提供了 priority_queue 实现堆的基本功能,比如 priority_queue <int> pq; 堆 pq 的元素都是 i ...
分类:
编程语言 时间:
2021-05-24 05:41:19
阅读次数:
0
declare var videojs: any <video id="my-player" class="video-js vjs-default-skin vjs-big-play-centered" style="width: 100%;height: 100%;" controls prel ...
分类:
Web程序 时间:
2021-05-24 05:34:16
阅读次数:
0
子组件 child.vue <template> <div> <p>hello world</p> <button @click="handleClick">click</button> </div> </template> <script lang="ts"> import { defineCom ...
分类:
其他好文 时间:
2021-05-24 05:33:32
阅读次数:
0
#前言 #安装扩展 ##ClaudiIDE ##参考文档 https://www.cnblogs.com/FlyerBird/p/11748899.html> https://blog.csdn.net/qq_43085848/article/details/109923906 ...
分类:
其他好文 时间:
2021-05-24 05:27:48
阅读次数:
0
LL qpow(LL x,LL y){ LL ans = 1; for(;y;y>>=1){ if(y&1) ans = (ans*x)%mod; x = (x*x)%mod; } return ans%mod; } LL inv(LL x,LL y){ // x/y; return ( (x%mo ...
分类:
其他好文 时间:
2021-05-24 05:25:54
阅读次数:
0
近来在一天新电脑上面使用git pull 一个项目,老是提示 Access denied, 找了许多方法,ssh key这些都配置了还是不行,当时别提有多尬 这就是clone 时的提示 最终解决方法,控制面板 > 用户账户 然后找到 凭据管理器 选择Windows凭据 如图删除掉之前使用者留下的 凭 ...
分类:
数据库 时间:
2021-05-24 05:23:44
阅读次数:
0
#举个栗子如下: x_vals = np.linspace(0, 10, 5) #print(x_vals) [ 0. 2.5 5. 7.5 10. ] 1 2 3 4 #转化数组为矩阵 x_vals_column = np.transpose(np.matrix(x_vals)) #print(x ...
分类:
编程语言 时间:
2021-05-24 05:23:26
阅读次数:
0
只能输入数字和小数点的正则 <input type="text" autocomplete="off" id="price" autofocus="autofocus" onkeyup="value=value.replace(/[^\d^\.]+/g,'')"> onkeyup="value=va ...
分类:
其他好文 时间:
2021-05-24 05:16:05
阅读次数:
0
因为springboot到生产环境是在部署到jar或者war,推荐用jar比较方便 如下pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xs ...
分类:
编程语言 时间:
2021-05-24 05:14:52
阅读次数:
0
首先说一下父子组件 传参,接参 第一步。导入子组件 例 // const auditTrace_a = () => import ('./auditTrace')异步 import auditTrace_a from './auditTrace' //同步导入 第二步。组件引用 components ...
分类:
其他好文 时间:
2021-05-24 05:12:40
阅读次数:
0