描述:不使用 * / % 完成除法操作。O(n)复杂度会超时,需要O(lg(n))复杂度。代码: 1 class Solution: 2 # @return an integer 3 def dividePositive(self, dividend, divisor): 4 ...
分类:
其他好文 时间:
2014-07-16 19:18:00
阅读次数:
298
uva10790:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1731题意:两条水平线,分别有n,m个点,点之间两两连线,求有多少个交点。题解:手动模拟一...
分类:
其他好文 时间:
2014-07-16 18:46:50
阅读次数:
182
Ultra-QuickSort
Description
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence eleme...
分类:
其他好文 时间:
2014-07-16 09:00:13
阅读次数:
240
Task switcher in KDE is used to configure the behavior for navigating through windows. It has two modes, main and alternative. By default, the task sw...
分类:
其他好文 时间:
2014-07-15 23:29:00
阅读次数:
379
Snowflake Snow SnowflakesTime Limit:4000MSMemory Limit:65536KTotal Submissions:30529Accepted:8033DescriptionYou may have heard that no two snowflakes ...
分类:
其他好文 时间:
2014-07-15 09:27:32
阅读次数:
231
Two SumGiven 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...
分类:
其他好文 时间:
2014-07-15 08:45:17
阅读次数:
236
/*
D - D
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Practice
POJ 3414
Description
You are given two pots, having the volume of A and B liters resp...
分类:
其他好文 时间:
2014-07-14 17:16:04
阅读次数:
271
BACKGROUND1. FieldThe present invention generally relates to rendering two-dimension representations from three-dimensional scenes, and more particula...
分类:
其他好文 时间:
2014-07-14 14:39:07
阅读次数:
278
FIELD OF INVENTIONThis invention relates to computer graphics processing, and more specifically to computer graphics processing using two or more arch...
分类:
其他好文 时间:
2014-07-14 14:21:10
阅读次数:
272
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 29921
Accepted: 12975
Description
Flip game is played on a rectangular 4x4 field with two-sided...
分类:
其他好文 时间:
2014-07-14 12:46:46
阅读次数:
229