码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
[leetcode] Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2014-06-27 13:03:49    阅读次数:136
[leetcode] Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
分类:其他好文   时间:2014-06-27 12:59:50    阅读次数:176
[leetcode] Divide Two Integers
Divide two integers without using multiplication, division and mod operator.
分类:其他好文   时间:2014-06-27 12:50:12    阅读次数:253
[leetcode] Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
分类:其他好文   时间:2014-06-27 12:42:55    阅读次数:198
[leetcode] Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.
分类:其他好文   时间:2014-06-27 12:38:25    阅读次数:169
[leetcode] Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:其他好文   时间:2014-06-27 12:20:47    阅读次数:245
Leetcode Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".class Solution {public: string addBinary(str...
分类:其他好文   时间:2014-06-26 15:52:27    阅读次数:159
LeetCode:Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3...
分类:其他好文   时间:2014-06-26 14:06:02    阅读次数:252
【JAVA】merge two array by order
merge two array by order...
分类:编程语言   时间:2014-06-26 08:16:05    阅读次数:246
自学ios:second day Objective-C
oc是c的超集,从c扩展而来,具备面向对象的特性,比如类,消息,单继承。c的部分:数据类型:short,int,long,float,double,char,pointer,struct常用方法:readline()atoi()sizeof()malloc()oc的部分:receiver:classNameOrObjectselector:method消息的传递通过[recei..
分类:移动开发   时间:2014-06-26 06:39:56    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!