码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
大数相乘
Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i ...
分类:其他好文   时间:2019-08-14 23:45:19    阅读次数:90
[Leetcode] #01-Two Sum
抱着试一试的心态打开了著名的Leetcode去做了第一题,结果连续两次提交都失败了,其间还有3次编译错误= =。 看了一下导致解答错误的输入。 第一次错误,虽然很正确地想到了使用hashmap,但没有考虑相同的输入,因为[3,3,2] 6对应的输出可以是[0,1],而不是[],而这个错误输出是由于h ...
分类:其他好文   时间:2019-08-13 20:07:39    阅读次数:65
160. Intersection of Two Linked Lists(js)
160. Intersection of Two Linked Lists Write a program to find the node at which the intersection of two singly linked lists begins. For example, the f ...
分类:Web程序   时间:2019-08-11 21:31:42    阅读次数:105
UVA11388 GCD LCM
(链接点这儿) 题目: The GCD of two positive integers is the largest integer that divides both the integers without any remainder. The LCM of two positive inte ...
分类:其他好文   时间:2019-08-10 20:59:27    阅读次数:85
219. Contains Duplicate II - Easy
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the  ...
分类:其他好文   时间:2019-08-10 17:01:29    阅读次数:75
AtCoder Prefix Median(AGC012)
这是本人自己根据网上关于这题的资料,再结合自己的理解总结的一篇题解。 因为是在typora里面写的,不能直接粘过来,就直接放图片了。 写的也不算好,应该不会有人想转吧..... 不过要转的话请先征得我的同意(毕竟这么多东西我先研究了两天,又写了一上午,很不容易) 本人在文中摘取了IOI2018集训队 ...
分类:其他好文   时间:2019-08-10 14:30:54    阅读次数:89
后缀自动机
题目链接:http://icpc.upc.edu.cn/problem.php?cid=1828&pid=7 题目描述 Now you have a string consists of uppercase letters, two integers A and B. We call a subst ...
分类:其他好文   时间:2019-08-10 14:03:38    阅读次数:103
python basemap readshapefile二三事
今天要用到basemap读取shp文件报错,查了很多资料,都没有解决。 先是: 成功了。 可再用另一中国地图来加载时就出错了: 报错: 我按着提示去找了shapelib,源码下载到了,需要编译。 我也没有vc++环境,太麻烦了,也不知道能成不。 想了好多办法都没成功,包括用pyshpelib,这个也 ...
分类:编程语言   时间:2019-08-09 23:38:20    阅读次数:669
1120 Friend Numbers (20 分)
1120 Friend Numbers (20 分) 1120 Friend Numbers (20 分) 1120 Friend Numbers (20 分) Two integers are called "friend numbers" if they share the same sum o ...
分类:其他好文   时间:2019-08-09 13:38:47    阅读次数:69
js中引入js
第一个js文件(被引入的js文件),文件名one.js,内容如下 function alertInOne(){ alert('in one');} 第二个js文件,文件名two.js,内容如下 //注意这个地方document.write("<script language='javascript' ...
分类:Web程序   时间:2019-08-09 13:18:25    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!