码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
Remove Duplicates from Sorted Array leetcode java
题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space....
分类:编程语言   时间:2014-07-27 21:26:35    阅读次数:267
SPOJ - MYQ10 Mirror Number (数位DP)
Description A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number while 100 is not.  Given two ...
分类:其他好文   时间:2014-07-27 11:10:22    阅读次数:204
Divide Two Integers leetcode java
题目:Divide two integers without using multiplication, division and mod operator.题解:这道题我自己没想出来。。。乘除取模都不让用。。那只有加减了。。。我参考的http://blog.csdn.net/perfect888....
分类:编程语言   时间:2014-07-27 11:06:32    阅读次数:303
Container With Most Water leetcode java
题目: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 e....
分类:编程语言   时间:2014-07-27 11:04:52    阅读次数:278
N-Queens leetcode java
题目:The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return a....
分类:编程语言   时间:2014-07-27 11:00:22    阅读次数:262
【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-07-27 09:53:12    阅读次数:350
Eclipse 手动增加linker library
多个cu文件nvcc -cubin -m64 -lcudadevrt -lcublas_device -gencode arch=compute_35,code=sm_35 -o test.cubin -c test.cu -dlinkYou can also do that in two step...
分类:系统相关   时间:2014-07-26 16:51:12    阅读次数:350
LeetCode——Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array retur...
分类:其他好文   时间:2014-07-26 15:16:50    阅读次数:199
POJ 3414 Pots
Pots Description You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i)        fill the pot i (1 ≤ i ≤ 2) from the tap;DR...
分类:其他好文   时间:2014-07-26 15:04:00    阅读次数:263
hdu1247Hat’s Words (组合单词,字典树+DFS)
Problem Description A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find all the hat’s words in a dictionary. Input ...
分类:其他好文   时间:2014-07-26 15:02:10    阅读次数:220
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!