码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
C# 写 LeetCode easy #1 Two Sum
1、Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou ...
分类:Windows程序   时间:2018-11-28 22:16:35    阅读次数:233
[Leetcode 452] 最少需要射出多少支箭Minimum Number of Arrows to Burst Balloons 贪心 重载
【题目】 There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of th ...
分类:其他好文   时间:2018-11-28 15:39:02    阅读次数:183
Digital Deletions HDU - 1404
Digital deletions is a two-player game. The rule of the game is as following. Begin by writing down a string of digits (numbers) that's as long or as ...
分类:其他好文   时间:2018-11-27 16:48:53    阅读次数:157
LeetCode 第21题 合并有序链表
(一)题目描述 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. ...
分类:其他好文   时间:2018-11-27 01:43:59    阅读次数:207
POJ_3414 Pots 【复杂BFS】
一、题面 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 ≤ ...
分类:其他好文   时间:2018-11-27 01:23:12    阅读次数:156
21. Merge Two Sorted Lists - Easy
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: ...
分类:其他好文   时间:2018-11-26 20:19:11    阅读次数:205
Copying GC (Part two :Multi Space Copying GC)
[toc] 近似深度优先搜索方法 Paul R.Wilson、Michael S.Lam、Thomas G.Moher,1991 这个方法只是近似深度优先搜索,但可以做到深度优先执行GC复制算法。 Cheney的GC复制算法 假设所有对象都是2个字,下图所示是对象间的引用关系。 下图所示是执行该算法 ...
分类:其他好文   时间:2018-11-26 10:22:21    阅读次数:236
Mark Compact GC (Part two :Two-Finger)
[toc] Two Finger算法 Robert A.Saunders 对堆执行两次搜索 前提 Two Finger 算法, 必须将所有对象整理成大小一致 。它没有在对象的头中设立forwarding指针,而是 在对象的域中设立forwarding指针 即可。 概要 Two Finger算法由一下 ...
分类:其他好文   时间:2018-11-26 10:18:32    阅读次数:196
Codeforces Round #524 (Div. 2) C. Masha and two friends
C. Masha and two friends 题目链接:https://codeforc.es/contest/1080/problem/C 题意: 给出一个黑白相间的n*m的矩阵,现在先对一个子矩阵颜色变为白色,然后再对一个子矩阵颜色变为黑色,问最终白色格子和黑色格子有多少? 题解: 定义w( ...
分类:其他好文   时间:2018-11-25 21:16:09    阅读次数:159
[LeetCode&Python] Problem 796. Rotate String
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, ...
分类:编程语言   时间:2018-11-25 18:01:32    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!