码迷,mamicode.com
首页 >  
搜索关键字:kth largest    ( 1961个结果
152. Maximum Product Subarray - Medium
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I ...
分类:其他好文   时间:2020-09-18 00:08:22    阅读次数:27
【leetcode】1509. Minimum Difference Between Largest and Smallest Value in Three Moves
题目如下: Given an array nums, you are allowed to choose one element of nums and change it by any value in one move. Return the minimum difference between ...
分类:其他好文   时间:2020-09-17 22:48:12    阅读次数:35
el-table动态合并行,列固定的数据显示
因为工作需要需要开发一个表格,列固定,但是行需要合并,而且不固定需要根据返回数据动态显示隐藏,样子如下: 行的分类可能有或者没有,可能有公务员领导职务分类或者没有,没有的话就不会显示它的数据。 el-table官方文档 看官方文档使用的方法就是span-method, 详细部分请查阅资料 // 学历 ...
分类:其他好文   时间:2020-09-17 20:26:52    阅读次数:31
线程池处理异步任务队列
线程池处理异步任务队列 /// <author>cxg 2020-9-3</author> /// 支持d7以上版本,更低版本没有测试,支持跨OS unit tasks; interface uses {$IFDEF mswindows} Windows, {$ENDIF} {$IFDEF posi ...
分类:编程语言   时间:2020-09-16 12:43:31    阅读次数:71
[LeetCode] 956. Tallest Billboard 最高的广告牌
You are installing a billboard and want it to have the largest height. The billboard will have two steel supports, one on each side. Each steel suppor ...
分类:其他好文   时间:2020-08-19 19:53:32    阅读次数:69
Finding max and min in arrays Find the second largest element in an array
Implement a method to find the second largest number in an array of ints. If the input array is empty or contains only a single number, the method mus ...
分类:其他好文   时间:2020-08-18 13:58:14    阅读次数:82
LeetCode 1539. 第 k 个缺失的正整数 模拟
地址 https://leetcode-cn.com/problems/kth-missing-positive-number/ 给你一个 严格升序排列 的正整数数组 arr 和一个整数 k 。 请你找到这个数组里第 k 个缺失的正整数。 示例 1: 输入:arr = [2,3,4,7,11], k ...
分类:其他好文   时间:2020-08-09 19:10:05    阅读次数:80
[算法学习] 平衡树 splay
基本信息维护 struct Splay { int sz, fa, val, cnt, ch[2]; //sz 表示子树大小 //ch[0 / 1]表示左右两个儿子 //fa 表示父亲 //cnt 表示该点的值出现了几次 //val 节点的值 } t[N]; #define ls(p) (t[p]. ...
分类:编程语言   时间:2020-08-05 00:11:51    阅读次数:115
sqlzoo刷题 SELECT within SELECT Tutorial
SELECT within SELECT Tutorial 5.Germany (population 80 million) has the largest population of the countries in Europe. Austria (population 8.5 million ...
分类:数据库   时间:2020-08-04 09:47:59    阅读次数:90
PAT (Advanced Level) Practice-1029 Median
二分查找 #include<bits/stdc++.h> using namespace std; const int maxn = 2e5+5; long long a[maxn], b[maxn]; long long getKth(int k, int lo1, int hi1, int lo ...
分类:其他好文   时间:2020-07-23 23:22:49    阅读次数:76
1961条   上一页 1 2 3 4 5 ... 197 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!