class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { int n=nums.size(); vector<vector<int>>ans; if(n<3) return{}; sort(nums.begi ...
分类:
其他好文 时间:
2021-02-08 11:52:34
阅读次数:
0
文章目录 1、使用windbg中的umdh检查 1.1、 工具下载 1.2、环境配置 1.3、利用工具umdh(user-mode dump heap)分析 1.4、利用umdh创建heap快照 2、使用windbg中的htrace检查 2.1、准备工作 2.2、快照 2.3 、执行操作,比较差异 ...
分类:
数据库 时间:
2021-02-03 10:58:43
阅读次数:
0
线上查问题的时候有些命令是必备,有必要把一些常用命令总结一下,查找问题一般可以分为系统参数、性能参数、进程、内存、网络、存储、内存和jvm这么几类: 系统参数cat /proc/cpuinfo cpu相关参数 cat /proc/meminfo 内存相关参数 cat /proc/loadavg 负载 ...
分类:
系统相关 时间:
2021-02-03 10:49:18
阅读次数:
0
给你一个未排序的整数数组 nums ,请你找出其中没有出现的最小的正整数。O(n)+O(1) 排序 func firstMissingPositive(A []int) int { n := len(A) sort.Ints(A) for i := 1; i <= n; i++ { idx := s ...
分类:
其他好文 时间:
2021-02-01 12:16:54
阅读次数:
0
# linux 下 取进程占用 cpu 最高的前10个进程ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head # linux 下 取进程占用内存(MEM)最高的前10个进程ps aux|head -1;ps aux|grep -v PID|so ...
分类:
系统相关 时间:
2021-01-30 11:52:19
阅读次数:
0
数据结构 字典 list.append NodeList定义和操作 递归 操作 enumerate zip divmod,// (x if a else y) string = list lis.sort int(str(x)[::-1]) 去空格:str.strip() ...
分类:
编程语言 时间:
2021-01-27 13:13:12
阅读次数:
0
581. 最短无序连续子数组 给你一个整数数组 nums ,你需要找出一个 连续子数组 ,如果对这个子数组进行升序排序,那么整个数组都会变为升序排序。 请你找出符合题意的 最短 子数组,并输出它的长度。 示例 1: 输入:nums = [2,6,4,8,10,9,15] 输出:5 解释:你只需要对 ...
分类:
编程语言 时间:
2021-01-27 13:10:56
阅读次数:
0
基本查询,q表示关键字,df为不指定字段的默认字段,sort时间排序,from和size表示分页和每页大小,timeout为超时时间 GET /movies/_search?q=2012&df=title&sort=year:desc&from=0&size=10&timeout=1s 带profi ...
分类:
其他好文 时间:
2021-01-27 13:06:43
阅读次数:
0
Sort the Matrix Diagonally (M) 题目 A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column a ...
分类:
其他好文 时间:
2021-01-25 11:27:14
阅读次数:
0
{eyou:tag getall='1' row='50' sort='hot'} <a href='{$field.link}'>{$field.tag}</a> {/eyou:tag} getall='' 获取类型,0为当前内容页TAG标记,1为获取全部TAG标记 sort='' 标签排序方式 ...
分类:
其他好文 时间:
2021-01-25 11:16:55
阅读次数:
0