码迷,mamicode.com
首页 >  
搜索关键字:find peak element    ( 34692个结果
LeetCode: Combinations [077]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:其他好文   时间:2014-06-05 11:14:26    阅读次数:255
[leetcode]Max Points on a Line @ Python
原题地址:https://oj.leetcode.com/problems/max-points-on-a-line/题意:Givennpoints on a 2D plane, find the maximum number of points that lie on the same strai...
分类:编程语言   时间:2014-06-03 08:55:48    阅读次数:282
Pinpointing the location of a Device
ProblemYou want to find the latitude and longitude of a device.SolutionUse the CLLocationManager class:#import "WSYViewController.h"#import @interface...
分类:其他好文   时间:2014-06-03 07:15:49    阅读次数:275
数据结构大作业代写
【题目】Given a set of files, of which the sizes will not exceed 10 Gigabytes, find out whether an input string appears or not.Your program is judged base...
分类:其他好文   时间:2014-06-03 07:15:17    阅读次数:472
Mongdb操作嵌套文档
1、一个文档如下db.posts.find(){ "_id" : ObjectId("5388162dfc164ee1f39be37f"), "title" : "Java Example", "content" : "This is a example for Java!", ...
分类:数据库   时间:2014-05-31 21:50:28    阅读次数:396
JQuery+javascript遍历tr td
function InitTable(tableID, trName) { $(tableID + " tr").each(function (index, element) { if (index == 0 || index == $(tableID + " tr").leng...
分类:编程语言   时间:2014-05-31 17:02:47    阅读次数:251
【HDOJ】1150 Machine Schedule
匈牙利算法。 1 #include 2 #include 3 4 #define MAXNUM 1005 5 6 char map[MAXNUM][MAXNUM]; 7 char visit[MAXNUM]; 8 int son[MAXNUM]; 9 10 int find(int x, i...
分类:其他好文   时间:2014-05-31 16:54:26    阅读次数:291
Emmet/Zen Coding 快速入门说明
快速参考 以下是支持的特性: ele creates an HTML element tag 展开一个HTML元素标签 # creates an id attribute 作用于元素标签,展开一个id属性 . creates...
分类:其他好文   时间:2014-05-31 15:32:34    阅读次数:321
【LeetCode】Jump Game II
Jump Game IIGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents...
分类:其他好文   时间:2014-05-31 03:14:14    阅读次数:243
LeetCode: Longest Substring Without Repeating Characters 题解
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-05-30 23:46:09    阅读次数:453
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!