码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
View 的绘制流程
1:项目完工,不忙,闲来整理资料,对于View的绘制流程很想去了解,其实想了解View 的绘制流程还是从安卓官网的文档开始的,   1):Drawing begins with the root node of the layout.     2):Drawing the layout is a two pass process: a measure pass and a layout...
分类:其他好文   时间:2014-08-12 17:04:54    阅读次数:339
HDU-1067-Gap(BFS+HASH)
Problem Description Let's play a card game called Gap. You have 28 cards labeled with two-digit numbers. The first digit (from 1 to 4) represents the suit of the card, and the second digit (from 1 ...
分类:其他好文   时间:2014-08-12 10:24:14    阅读次数:379
hdu 3832 Earth Hour
StatusEach street light can be viewed as a point in a plane,which casts flash in a circular area with certain radius.What's more,if two illuminated ci...
分类:其他好文   时间:2014-08-12 02:58:43    阅读次数:289
Circle 树状数组
DescriptionYou are given n points and two circles. The radius of the circle will be dynamical. Your task is to find how many points are under both cir...
分类:其他好文   时间:2014-08-12 02:57:33    阅读次数:276
UVA 10986 Sending email(SPFA)
There are n SMTP servers connected by network cables. Each of the m cables connects two computers and has a certain latency measured in milliseconds required to send an email message. What is the sh...
分类:其他好文   时间:2014-08-11 21:25:02    阅读次数:384
HDU-3309-Roll The Cube(BFS)
Problem Description This is a simple game.The goal of the game is to roll two balls to two holes each. 'B' -- ball 'H' -- hole '.' -- land '*' -- wall Remember when a ball rolls into a hole, the...
分类:其他好文   时间:2014-08-11 21:22:12    阅读次数:308
leetcode 刷题之路 76 Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 删除排序链表中重复的节点,删除操作...
分类:其他好文   时间:2014-08-11 18:01:22    阅读次数:243
[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 O(log (m+n)). public class Solution { ...
分类:其他好文   时间:2014-08-11 15:14:12    阅读次数:188
POJ 3356 AGTC.
~~~~ 题目意思问将序列 x 转化成序列 y 需要多少步操作。 题目链接:http://poj.org/problem?id=3356 ~~~~ 我的想法先求的两条序列的最长公共子序列。余下不相同或者是缺少的部分做相应的处理就好。 最长公共子序列都会吧,于是···· #include #include #include #include #define N 1000+10 using...
分类:其他好文   时间:2014-08-11 12:02:32    阅读次数:238
Treblecross 博弈SG值
Treblecross is a two player game where the goal is to get threeXin a row on a one-dimensional board. At the start of the game all cells in the board a...
分类:其他好文   时间:2014-08-10 23:50:01    阅读次数:451
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!