码迷,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-10-06 13:11:00    阅读次数:167
sicily 1024 邻接矩阵与深度优先搜索解题
DescriptionThere are N cities and N-1 roads in Magic-Island. You can go from one city to any other. One road only connects two cities. One day, The ki...
分类:其他好文   时间:2014-10-06 02:45:19    阅读次数:292
[LeetCode] Add Two Numbers
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 ...
分类:其他好文   时间:2014-10-05 23:28:39    阅读次数:357
Leetcode Two Sum
struct Node{ int index; int value; }; bool compare(Node a, Node b) { return a.value < b.value; } class Solution { public: vector twoSum(vector &numbers, int target) { ...
分类:其他好文   时间:2014-10-05 22:56:39    阅读次数:252
acdream 1234 Two Cylinders
Two Cylinders Special JudgeTime Limit: 10000/5000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others) SubmitStatisticNext Problem Problem Description       In this problem your t...
分类:其他好文   时间:2014-10-05 20:38:39    阅读次数:184
Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-10-05 20:05:58    阅读次数:208
Acdream 1234 Two Cylinders 自适应辛普森
题目链接:点击打开链接 给定r1,r2 表示2个圆柱体的半径 这两个圆柱体高是正无穷,互相垂直,问相交的最大面积 #include #include #include #include #define M 410 #define inf 0x3f3f3f3f const double eps = 1e-8; template inline bool rd(T &ret) ...
分类:其他好文   时间:2014-10-05 19:47:49    阅读次数:206
poj 3414 Pots (bfs+路径记录)
Pots Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10071   Accepted: 4237   Special Judge Description You are given two pots, having the volume of A an...
分类:其他好文   时间:2014-10-05 17:52:28    阅读次数:193
poj1753-Flip Game(高斯消元枚举xor线性方程自由变元的值,找为1解的最少数量)
Flip Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 31227   Accepted: 13583 Description Flip game is played on a rectangular 4x4 field with two-sided pie...
分类:其他好文   时间:2014-10-05 17:50:38    阅读次数:319
Leetcode: Scramble String
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:其他好文   时间:2014-10-05 04:01:47    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!