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 ...
【题目】 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 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
(一)题目描述 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
一、题面 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
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
[toc] 近似深度优先搜索方法 Paul R.Wilson、Michael S.Lam、Thomas G.Moher,1991 这个方法只是近似深度优先搜索,但可以做到深度优先执行GC复制算法。 Cheney的GC复制算法 假设所有对象都是2个字,下图所示是对象间的引用关系。 下图所示是执行该算法 ...
分类:
其他好文 时间:
2018-11-26 10:22:21
阅读次数:
236
[toc] Two Finger算法 Robert A.Saunders 对堆执行两次搜索 前提 Two Finger 算法, 必须将所有对象整理成大小一致 。它没有在对象的头中设立forwarding指针,而是 在对象的域中设立forwarding指针 即可。 概要 Two Finger算法由一下 ...
分类:
其他好文 时间:
2018-11-26 10:18:32
阅读次数:
196
C. Masha and two friends 题目链接:https://codeforc.es/contest/1080/problem/C 题意: 给出一个黑白相间的n*m的矩阵,现在先对一个子矩阵颜色变为白色,然后再对一个子矩阵颜色变为黑色,问最终白色格子和黑色格子有多少? 题解: 定义w( ...
分类:
其他好文 时间:
2018-11-25 21:16:09
阅读次数:
159
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