码迷,mamicode.com
首页 >  
搜索关键字:find peak element    ( 34692个结果
hdu 1598 find the most comfortable road
http://acm.hdu.edu.cn/showproblem.php?pid=1598 1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 const int inf=1<<30; 7...
分类:其他好文   时间:2014-05-05 10:53:38    阅读次数:344
hdu 1599 find the mincost route
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3 #include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:其他好文   时间:2014-05-05 10:52:15    阅读次数:315
javascript 获取元素样式的方法
javascript 获取元素样式常用方法。Javascript获取CSS属性值方法:getComputedStyle和currentStyle1 .对于元素的内联CSS样式(hello),可以直接使用element.style.color来直接获取css属性的值;2. 但是对于外部定义的css样式...
分类:编程语言   时间:2014-05-05 10:19:39    阅读次数:448
【LeetCode】Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-05-05 10:05:58    阅读次数:300
QT环境搭建常见的bug解决 -->ld: cannot find –lbootstrap 错误
常见错误列表一、编译arm环境的时候:./configure -prefix $HOME/Qtenv/arm -embedded arm-nomake docs -nomake demo -nomake examples1、configure完成之后,make出现问题:/usr/bin/ld: ca...
分类:其他好文   时间:2014-05-05 09:32:27    阅读次数:1967
Element demo解析
Element demo解析
分类:其他好文   时间:2014-05-04 20:59:21    阅读次数:319
HTML5实现全屏API【进入和退出全屏】
现在主流浏览器基本上实现了全屏效果,但是不同浏览器实现不一样:【进入和退出全屏】// Webkit (works in Safari5.1 and Chrome 15)element.webkitRequestFullScreen();document.webkitCancelFullScreen(...
分类:Windows程序   时间:2014-05-04 19:54:32    阅读次数:358
POJ 2236 Wireless Network ||POJ 1703 Find them, Catch them 并查集
1.给你N台损坏的电脑坐标,这些电脑只能与不超过距离d的电脑通信,但如果x和y均能C通信,则x和y可以通信。现在给出若干个操作, O p 代表修复编号为p的电脑 S p q代表询问p和q是不是能通信。 2.xx城市有两个帮派,给你m条信息, D a b表示a和b不在一个帮派里。 A a b时要求输出a和b是不是在一个帮派里。(在/不在/不确定)...
分类:Web程序   时间:2014-05-03 21:49:54    阅读次数:351
【LeetCode】Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:其他好文   时间:2014-05-03 21:35:49    阅读次数:310
【Union Find】JAVA implementation
import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; class UF { private int[] id; private int count; public UF(int N) { count = N; id = n...
分类:编程语言   时间:2014-05-03 21:21:44    阅读次数:336
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!