3231 - Fair ShareAsia - Seoul - 2004/2005You are given N processors and M jobs to be processed. Two processors are specified to each job. To processth...
分类:
其他好文 时间:
2014-08-18 14:14:32
阅读次数:
278
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".分析:该题需要注意的地方:1)两个string的长度可能不同 2)近位借鉴leetcode-c...
分类:
其他好文 时间:
2014-08-18 14:13:42
阅读次数:
167
Problem You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L of all available items. From this list you would like to buy tw...
分类:
其他好文 时间:
2014-08-18 12:42:04
阅读次数:
222
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:
其他好文 时间:
2014-08-18 12:20:34
阅读次数:
148
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other....
分类:
其他好文 时间:
2014-08-18 10:51:34
阅读次数:
121
II
U C ONLINE
C ON TEST
2 008
Problem D: GCD LCM
Input: standard input
Output: standard output
The GCD of two positive integers is the largest integer ...
分类:
其他好文 时间:
2014-08-17 21:24:53
阅读次数:
189
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-08-17 19:49:42
阅读次数:
190
Treblecross is a two player gamewhere the goal is to get three X in a row on a one-dimensional board. At the startof the game all cells in the board is empty. In each turn a player puts a X in an empt...
分类:
其他好文 时间:
2014-08-17 17:03:33
阅读次数:
358
We have seen built-in functions that take a variable number of arguments. For example range can take one, two or three arguments.It is possible to wri...
分类:
其他好文 时间:
2014-08-17 16:52:32
阅读次数:
272
A JavaScript object is composed of properties which may fall into two categories—data properties and accessor properties. A property is identified by a name and described by four attributes. The attri...
分类:
编程语言 时间:
2014-08-17 15:37:42
阅读次数:
344