码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
cocoa foundation笔记-2
//数组的创建? ????NSArray?*array1?=?[NSArray?arrayWithObject:@"one"]; ????NSArray?*array2?=?[NSArray?arrayWithObjects:@"one",?@"two",?nil]; ????NSArray?*array3?=?[...
分类:其他好文   时间:2014-07-31 21:22:47    阅读次数:225
Uva10290 - {Sum+=i++} to Reach N
Problem H {sum+=i++} to Reach N Input: standard input Output:  standard output Memory Limit: 32 MB   All the positive numbers can be expressed as a sum of one, two or more consecutive positive i...
分类:其他好文   时间:2014-07-31 20:58:37    阅读次数:199
Balanced Binary Tree(Java代码没过,什么原因???)
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:编程语言   时间:2014-07-31 20:55:47    阅读次数:197
Leetcode--Two Sum
Problem Description: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they...
分类:其他好文   时间:2014-07-31 20:48:17    阅读次数:215
Leetcode--Add Two Numbers
Problem Description: 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 numbe...
分类:其他好文   时间:2014-07-31 20:47:17    阅读次数:215
How many Fibs?(高精度)
Description Recall the definition of the Fibonacci numbers:  f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n>=3) Given two numbers a and b, calculate how many Fibonacci numbers are in the range...
分类:其他好文   时间:2014-07-31 17:11:07    阅读次数:325
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-07-31 12:14:56    阅读次数:222
HDU 1081 To The Max
DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or greater locat...
分类:其他好文   时间:2014-07-31 02:38:55    阅读次数:292
Same Tree leetcode java
题目: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 identica....
分类:编程语言   时间:2014-07-31 02:24:15    阅读次数:211
HDU - 3117 Fibonacci Numbers
Description The Fibonacci sequence is the sequence of numbers such that every element is equal to the sum of the two previous elements, except for the first two elements f0 and f1 which are respect...
分类:其他好文   时间:2014-07-31 00:08:05    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!