码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
[LeetCode] Merge Sorted Array
Given 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 that is greater or equal...
分类:其他好文   时间:2014-11-09 19:30:15    阅读次数:143
POJ 2406 Power Strings 简单KMP
Power Strings Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 33389   Accepted: 13869 Description Given two strings a and b we define a*b to be their conca...
分类:其他好文   时间:2014-11-09 18:11:37    阅读次数:247
hdu 2054 A == B ?
A == B ? Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 64227    Accepted Submission(s): 10057 Problem Description Give you two nu...
分类:其他好文   时间:2014-11-09 18:07:40    阅读次数:214
Merge Two Sorted Lists
归并两个有序序列为一个有序序列Merge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the n...
分类:其他好文   时间:2014-11-09 16:34:47    阅读次数:182
Add Binary 二进制数相加
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".二进制数想加,并且保存在string中,要注意的是如何将string和int之间互相转换,并且...
分类:其他好文   时间:2014-11-09 13:43:01    阅读次数:178
[006] largest_common_substring
[Description] Given two different strings, find the largest successive common substring.e.g. str1[]="qwertyuiopasdfgh"; str2[]="jhdfgqwertyudfxcv"; .....
分类:其他好文   时间:2014-11-09 12:31:30    阅读次数:203
[Erlang危机](4.0)连接远程节点
连接到远程节点Interacting with a running server program is traditionally done in one of two ways. One is to do it through an interactive shell kept available by using a screen or tmux session that runs in th...
分类:其他好文   时间:2014-11-09 09:56:37    阅读次数:127
OC数组遍历的方法
#import<Foundation/Foundation.h> intmain(intargc,constchar*argv[]){ @autoreleasepool{ NSArray*array=[[NSArrayalloc]initWithObjects:@"oneone",@"Two",@"Three",nil]; //快速枚举法 for(NSString*tempinarray){ NSLog(@"%@",temp); } //枚举器法 NSEnumerator..
分类:编程语言   时间:2014-11-09 06:27:57    阅读次数:156
Leetcode-Same Tree
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:其他好文   时间:2014-11-09 06:16:58    阅读次数:170
Merge Two Sorted Lists
以前做过合并数组,这次是合并链表,写起来很快,第一次提交,忘记new一个listNode的时候传参数,导致编译错误,修改完这个错误后就没问题了,代码因该是很简单的。需要注意的是,凡是sorted的,都是从小到大排列,另外leetcode上面的链表都没有尾巴,便利的时候需要注意。 1 /** 2 *....
分类:其他好文   时间:2014-11-09 00:59:17    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!