手写堆 算法思想 堆是一颗完全二叉树 STL里的堆就是优先队列priority_queue 用一维数组存储 下标一定是从1开始,避免0的左儿子2x还是0的冲突 核心操作:down(x)下移节点 up(x)上移节点 插入一个数 heap[++size] = x; up(size); 求集合当中的最小值 ...
分类:
其他好文 时间:
2020-04-29 12:33:48
阅读次数:
52
向上或向下移动一行: Alt+Up 或 Alt+Down 向上或向下复制一行: Shift+Alt+Up 或 Shift+Alt+Down 在当前行下方插入一行: Ctrl+Enter 在当前行上方插入一行: Ctrl+Shift+Enter ...
分类:
其他好文 时间:
2020-04-28 20:24:07
阅读次数:
52
git如何忽略部分不想备份的文件ubuntu@VM-0-2-ubuntu:~/Projects/microblog$ git statusOn branch masterYour branch is up-to-date with 'origin/master'.Changes not staged ...
分类:
其他好文 时间:
2020-04-28 16:58:45
阅读次数:
85
Given the map of a city, with all the ambulance dispatch centers (救护车派遣中心) and all the pick-up spots marked. You are supposed to write a program to pr ...
分类:
其他好文 时间:
2020-04-28 13:22:15
阅读次数:
61
好记性不如烂笔头,还是记记吧。 jmeter压测的指标有很多,先从简单的入手,下一章节再讲解jmeter组件的作用。 需求是:访问百度的压测指标是:10s内并发5,持续15次请求。那么需要设置以下几点: 1、新增一个线程组,线程属性有3个属性:线程组、Ramp-Up时间、循环次数。先了解这三个属性的 ...
分类:
其他好文 时间:
2020-04-27 17:50:01
阅读次数:
189
Given two binary search trees, return True if and only if there is a node in the first tree and a node in the second tree whose values sum up to a giv ...
分类:
其他好文 时间:
2020-04-27 13:22:13
阅读次数:
61
学习 Java 的好去处: 无论是刚学的,还是学习中、毕业后的小伙伴,都可以从这里学到知识。 可以关注:狂神说Java(B站的UP主)https://space.bilibili.com/95256449,尚硅谷等其他的教学视频也都是很不错的。 目前有7个阶段:Java 基础 -> html+css ...
分类:
编程语言 时间:
2020-04-26 21:13:44
阅读次数:
80
因为之前每次都要百度 所以这次记录一下 set -g prefix C-a #修改快捷键 unbind C-b #解绑 ctrl b # VIM模式 bind-key k select-pane -U # up bind-key j select-pane -D # down bind-key h ...
分类:
其他好文 时间:
2020-04-26 10:39:40
阅读次数:
68
const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> <form> <label> Sign-up Email <input type="email"> </label> <labe ...
分类:
Web程序 时间:
2020-04-25 20:47:11
阅读次数:
72
主席树 然后在这先%%%一个B站宝藏up主,数据结构讲的很清楚,主席树这一节也是听了很多很多遍 https://space.bilibili.com/120174936?spm_id_from=333.788.b_765f7570696e666f.1 有些概念来自up主的ppt,主席树的代码习惯也是 ...
分类:
其他好文 时间:
2020-04-25 14:20:13
阅读次数:
63