码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
LeetCode ---- Merge Sorted Array
题目链接Problem discriptionGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size t...
分类:其他好文   时间:2014-06-16 11:12:36    阅读次数:192
1.1.4 Getting Started_Budding Your First App_Starting Another Activity
AnIntentis an object that provides runtime binding between separate components (such as two activities). Theintentrepresents an app’s "intent to do so...
分类:移动开发   时间:2014-06-16 10:00:27    阅读次数:248
Depth-first Search(DFS)
There are generally two methods to write DFS algorithm, one is using recursion, another one is using stack. (reference from Wiki Pedia)Pseudocode for ...
分类:其他好文   时间:2014-06-13 08:39:34    阅读次数:218
jquery返回顶部-ie6配合css表达式。
css:.wraper{ width:980px; height:2048px; margin:0 auto; background:#ccc; }/*返回头部*/#backToTop a{ display:block; cursor:pointer;width:25px; height:26px;...
分类:Web程序   时间:2014-06-12 21:52:32    阅读次数:362
[leetcode]Multiply Strings @ Python
原题地址:https://oj.leetcode.com/problems/multiply-strings/题意:Given two numbers represented as strings, return multiplication of the numbers as a string.N...
分类:编程语言   时间:2014-06-12 21:43:03    阅读次数:344
黑马程序员_学习IOS之字典常用的方法
字典是无序的 数组是有序的。字典分为:可变字典和不可变字典不可变字典对象NSDictionary * dict = [[NSDictionary alloc]initWithObjectsAndKeys:@"one",@"1",@"two",@"2",@"three",@"3",@"four",@"...
分类:移动开发   时间:2014-06-12 06:25:50    阅读次数:324
Merge Two Sorted Lists
题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 方法 有序链表,合并成一个有序链表。 public ListNod...
分类:其他好文   时间:2014-06-10 18:13:11    阅读次数:241
Add Binary
题目 Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 方法 从后往前,每个字符进行判断。 public String addBinary(String a, String...
分类:其他好文   时间:2014-06-10 17:50:48    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!