码迷,mamicode.com
首页 >  
搜索关键字:least    ( 1796个结果
287. Find the Duplicate Number
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:其他好文   时间:2018-11-04 00:41:03    阅读次数:153
【LeetCode】队列 queue(共8题)
https://leetcode.com/tag/queue/ ...
分类:其他好文   时间:2018-11-01 00:54:43    阅读次数:197
395. Longest Substring with At Least K Repeating Characters
https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/discuss/87739/Java-Strict-O(N)-Two-Pointer-Solution window分别为1-26 ...
分类:其他好文   时间:2018-10-31 12:28:58    阅读次数:143
LRU(最近最少使用淘汰算法)基本实现
LRU(Least Recently Used) 出发点:在页式存储管理中,如果一页很长时间未被访问,则它在最近一段时间内也不会被访问,即时间局部性,那我们就把它调出(置换出)内存。 为了实现LRU淘汰算法,需要一些特殊的硬件支持。 三种可行方法 下面给出,栈法的实现代码: 原理: 运行截图: (似 ...
分类:编程语言   时间:2018-10-30 00:24:42    阅读次数:304
[Matlab] LS(least squares)拟合3D平面
function [a,b,c,d]=get_LS_plane(data) % a*x + b*y + c*z + d = 0 planeData=data; % 协方差矩阵的SVD变换中,最小奇异值对应的奇异向量就是平面的方向 xyz0=mean(planeData,1); centeredPla... ...
分类:其他好文   时间:2018-10-28 22:03:48    阅读次数:270
面向对象设计原则 迪米特法则(Law of Demeter)
迪米特法则(Law of Demeter) 又叫作最少知识原则(Least Knowledge Principle 简写LKP),英文简写为: LoD. 这是一种面向对象程序设计的指导原则,它描述了一种保持代码松耦合的策略。 迪米特法则可以简单说成:talk only to your immedia ...
分类:其他好文   时间:2018-10-28 11:09:48    阅读次数:105
常用数据库连接池 (DBCP、c3p0、Druid) 配置说明(转)
1. 引言 1.1 定义 数据库连接是一种关键的有限的昂贵的资源,这一点在多用户的网页应用程序中体现得尤为突出。对数据库连接的管理能显著影响到整个应用程序的伸缩性和健壮性,影响到程序的性能指标。数据库连接池正是针对这个问题提出来的。 数据库连接池负责分配、管理和释放数据库连接,它允许应用程序重复使用 ...
分类:数据库   时间:2018-10-27 14:50:53    阅读次数:182
leetcode 862 shorest subarray with sum at least K
https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/ 首先回顾一下求max子数组的值的方法是:记录一个前缀min值,然后扫一遍sum数组。 1、首先这里不需要最大,因为刚好够k就好了 2、这里需要距离最短。就是数组的 ...
分类:其他好文   时间:2018-10-26 22:09:27    阅读次数:372
146 LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the ...
分类:系统相关   时间:2018-10-25 17:08:06    阅读次数:181
poj 3613Cow Relays
Description For their physical fitness program, N (2 ≤ N ≤ 1,000,000) cows have decided to run a relay race using the T (2 ≤ T ≤ 100) cow trails throu ...
分类:其他好文   时间:2018-10-23 12:07:19    阅读次数:190
1796条   上一页 1 ... 36 37 38 39 40 ... 180 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!