码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
Metric Space
Metric spaces is a large class of spaces on which the closeness of two points is depicted by a distance function, or called a metric. Metric spaces ar...
分类:其他好文   时间:2014-08-05 03:04:28    阅读次数:220
LeetCode第四题,Add Two Numbers
题目原文: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:其他好文   时间:2014-08-05 00:51:58    阅读次数:257
Leetcode--Divide Two Integers
Problem Description: Divide two integers without using multiplication, division and mod operator. 分析:题目意思很容易理解,就是不用乘除法和模运算求来做除法,很容易想到的一个方法是一直做减法,然后计数,但是提交之后显示超时,在网上找到一种解法,利用位运算,意思是任何一个整数可以表示成以2的幂为...
分类:其他好文   时间:2014-08-04 21:33:28    阅读次数:307
Multiply Strings leetcode java
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-....
分类:编程语言   时间:2014-08-04 13:58:57    阅读次数:285
N-Queens leetcode
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:其他好文   时间:2014-08-04 13:31:07    阅读次数:250
给<a>标签增加href属性 ~~~ 转转
给标签增加href属性,就意味着以下事情::link选择器可以选择到它这个a标签可以获得焦点(可以通过tab按键访问到)在浏览器的默认样式表中,有href属性的标签才有cursor:pointer的效果(尤其是在低版本的IE上)。绑定了onclick事件的标签,尤其是它的作用是ajax请求时,基本上...
分类:其他好文   时间:2014-08-04 13:23:47    阅读次数:365
Add Binary Leetcode java
题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".题解:二进制加法都是从最低位(从右加到左)。所以对两个字符串要从最后一位开始加,....
分类:编程语言   时间:2014-08-04 06:13:36    阅读次数:291
Gray Code leetcode java
题目:The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total ....
分类:编程语言   时间:2014-08-04 04:10:46    阅读次数:309
ZOJ 3048 (HDU 2258) Continuous Same Game (1)
Problem Description Continuous Same Game is a simple game played on a grid of colored blocks. Groups of two or more connected (orthogonally, not diagonally) blocks that are the same color may be r...
分类:其他好文   时间:2014-08-03 23:21:29    阅读次数:336
POJ - 1436 Horizontally Visible Segments
Description There is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be connected by a horizontal line segment that does not ...
分类:其他好文   时间:2014-08-03 23:16:26    阅读次数:412
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!