链接:http://poj.org/problem?id=2421 或 http://acm.hdu.edu.cn/showproblem.php?pid=1102
Problem Description
There are N villages, which are numbered from 1 to N, and you should build some roads ...
分类:
其他好文 时间:
2014-05-10 09:34:09
阅读次数:
389
You should initialize most fields normally, not
lazily. If you must initialize a field lazily in order to achieve your
performance goals, or to break ...
分类:
编程语言 时间:
2014-05-09 18:32:56
阅读次数:
497
题目描述N integers are arranged on a circle clockwise.
Given two integers M and K. For each position, you should take M continuous
integers on the left an...
分类:
其他好文 时间:
2014-05-09 10:30:49
阅读次数:
350
Foreword Need to remove a batch of VMs, which
named with same prefix or belong to same Cloud Service. After remove VMs, should
automatically remove re...
分类:
其他好文 时间:
2014-05-08 09:18:56
阅读次数:
265
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-08 06:33:29
阅读次数:
339
前几天一直想引用别的DLL里面的一个图片。总是出现各种各样问题,一气之下将图片拷贝到当前Project中,运行良好。虽然知道引用图片,就1.2.列出来的2点就够了。1.The
Build Action should be Resource instead of Embedded Resource.2...
分类:
其他好文 时间:
2014-05-07 20:40:39
阅读次数:
385
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value
(will always be posi...
分类:
其他好文 时间:
2014-05-07 07:16:21
阅读次数:
316
[Question]
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to t...
分类:
其他好文 时间:
2014-05-07 05:37:44
阅读次数:
278
Merge Two Sorted ListsMerge two sorted linked
lists and return it as a new list. The new list should be made by splicing
together the nodes of the fir...
分类:
其他好文 时间:
2014-05-06 23:54:10
阅读次数:
469
Every class should clearly document its thread
safety properties with a carefully worded prose description or a thread safety
annotation. The synchron...
分类:
编程语言 时间:
2014-05-05 12:00:18
阅读次数:
437