码迷,mamicode.com
首页 >  
搜索关键字:two pointers    ( 12138个结果
关于promise
promise 是为了解决异步操作(回调地狱) function one(){ setTimeOut(()=>{ console.log("吃饭")),3000} function two(){ setTimeOut(()=>{ console.log("睡觉")),3000} function t ...
分类:其他好文   时间:2020-03-22 11:03:26    阅读次数:73
LeetCode | 1385. Find the Distance Value Between Two Arrays两个数组间的距离值【Python】
LeetCode 1385. Find the Distance Value Between Two Arrays两个数组间的距离值【Easy】【Python】【暴力】 Problem "LeetCode" Given two integer arrays and , and the integer ...
分类:编程语言   时间:2020-03-22 10:27:21    阅读次数:80
LeetCode 796. Rotate String
原题链接在这里:https://leetcode.com/problems/rotate-string/ 题目: We are given two strings, A and B. A shift on A consists of taking string A and moving the le ...
分类:其他好文   时间:2020-03-21 14:31:02    阅读次数:42
A - A Simple Problem with Integers (线段树的区间修改与区间查询)
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:其他好文   时间:2020-03-20 18:39:27    阅读次数:72
Derivative Pricing_3_Dynamic (two stochastic bg)
1. Two-dimensional Wiener Process dS1 = r·S1·dt + σ1·S1·dW1 ; and dS2 = r·S2·dt + σ2·S2·dW2 Solutions: St = S0·exp[(r - σ2 /2 )·t + σ·Wt] 1.1 No Corre ...
分类:其他好文   时间:2020-03-20 09:12:58    阅读次数:55
两数之和
地址:https://leetcode-cn.com/problems/two-sum/ <?php /** * Created by PhpStorm. * User: huahua * Date: 2020/3/18 * Time: 下午6:23 */ /** * 给定一个整数数组 nums 和 ...
分类:其他好文   时间:2020-03-19 09:35:48    阅读次数:69
zoj 4120Tokens on the Segments(优先队列+贪心)
Tokens on the Segments Time Limit: 1000 msMemory Limit: 65536 KB Consider segments on a two-dimensional plane, where the endpoints of the -th segment ...
分类:其他好文   时间:2020-03-18 18:57:20    阅读次数:98
Codeforces Round #620 (Div. 2) 题解
A. Two Rabbits 题意: 求左右两只分别能跳a,b距离的兔子,是否能在同一点,如果能求最短时间。 cpp include using namespace std; string s[101]; int p[101]; string ans; int main(){ int t,n; ci ...
分类:其他好文   时间:2020-03-18 15:25:59    阅读次数:61
RSA算法原理(二)
摘自:http://www.ruanyifeng.com/blog/2013/07/rsa_algorithm_part_two.html 上一次,我介绍了一些数论知识。 有了这些知识,我们就可以看懂RSA算法。这是目前地球上最重要的加密算法。 六、密钥生成的步骤 我们通过一个例子,来理解RSA算法 ...
分类:编程语言   时间:2020-03-18 13:51:19    阅读次数:65
JVM的内存模式
程序计数器 虚拟机栈 本地方法栈 堆 (新生代和老生代) 新生代(eden,two survivor) 老生代(永久代(现在变成元数据)) 元数据->类的字节流,常量,静态方法 (metaSpace的默认值在64位中20.75M)当第一次满的时候回触发GC; GC的算法: 引用计数法,标识清理法,复 ...
分类:其他好文   时间:2020-03-17 19:24:31    阅读次数:72
12138条   上一页 1 ... 36 37 38 39 40 ... 1214 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!