码迷,mamicode.com
首页 >  
搜索关键字:minimum    ( 3256个结果
209. Minimum Size Subarray Sum
问题:求给定数列中,最短子数列,使子数列之和>=给定值s Example: Input: s = 7, nums = [2,3,1,2,4,3] Output: 2 Explanation: the subarray [4,3] has the minimal length under the pr ...
分类:其他好文   时间:2020-03-21 15:07:57    阅读次数:98
154. Find Minimum in Rotated Sorted Array II
同https://www.cnblogs.com/habibah-chang/p/12538877.html 附加条件,允许重复数值。 Example 1: Input: [1,3,5] Output: 1 Example 2: Input: [2,2,2,0,1] Output: 0 方法: 思想 ...
分类:其他好文   时间:2020-03-21 14:54:19    阅读次数:57
[LeetCode] 671. Second Minimum Node In a Binary Tree
二叉树中第二小的节点。给定一个非空特殊的二叉树,每个节点都是正数,并且每个节点的子节点数量只能为 2 或 0。如果一个节点有两个子节点的话,那么这个节点的值不大于它的子节点的值。给出这样的一个二叉树,你需要输出所有节点中的第二小的值。如果第二小的值不存在的话,输出 -1 。例子, Example 1 ...
分类:其他好文   时间:2020-03-20 09:13:57    阅读次数:60
[LintCode] 1844. subarray sum equals k II
Given an array of integers and an integer k, you need to find the minimum size of continuous subarrays whose sum equals to k, and return its length. i ...
分类:其他好文   时间:2020-03-18 09:33:00    阅读次数:42
软工个人项目 ——wc.exe
1.GitHub项目地址 https://github.com/k8kiw/WordCount 2.PSP预计时间 PSP2.1 Personal Software Process Stages 预估耗时(分钟) 实际耗时(分钟) Planning 计划 20 · Estimate · 估计这个任务 ...
分类:其他好文   时间:2020-03-14 13:00:29    阅读次数:65
RMQ __ST
迅哥讲解(说实话没有认真听,不过关系不大) RMQ:Range Minimum Maximum Query 给定一个序列A[1…N],问A[i…j]之间的极值 如果只问一次, 显然是O(N) 标准RMQ问题是:不停的查询同一个序列上的不同区间内的极值 序列A的长度N,一共Q次查询 纯暴力法:O(NQ ...
分类:其他好文   时间:2020-03-12 23:16:13    阅读次数:57
Stats 102A HW4
Stats 102A HW4 Due March 3, 2020General Notes? You will submit a minimum of three files, the core files must conform to the followingnaming convention ...
分类:其他好文   时间:2020-03-08 20:10:33    阅读次数:68
Linux 主分区_扩展分区_逻辑分区
目录: 1、Linux分区介绍 2、创建主分区 3、创建扩展分区 4、创建逻辑分区 1、Linux分区介绍 1.1 分区规定: 每个磁盘设备最多4个主分区,或者3个主分区+1个扩展分区,是因为MBR(主引导记录)的分区表(主分区表)只能存放4个分区。 扩展分区只能有一个。 逻辑分区可以有多个。 可以 ...
分类:系统相关   时间:2020-03-07 13:06:52    阅读次数:111
Pyinstaller打包生成exe文件过大,四种常用处理方法集锦---嵌入式Python-01
pyinstaller打包一个exe动辄几十M几百M (特别是import pandas以后) 知乎上居然没有人po这方面的”知识“ 查了很多关于reduce pyinstaller打包出exe大小的方法 列举如下 玄学解法1 去除不必要的库 当我们用cmd/powershell 输入这一段神秘代码 ...
分类:编程语言   时间:2020-03-04 14:59:11    阅读次数:349
1、内嵌web ,web内用api对象
1、 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=devic ...
分类:Windows程序   时间:2020-03-04 09:58:52    阅读次数:69
3256条   上一页 1 ... 16 17 18 19 20 ... 326 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!