Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.1st (7 tries)class Solution {public: int maxPoin...
分类:
其他好文 时间:
2014-08-20 14:04:02
阅读次数:
234
DescriptionGiven a matrix, the elements of which are all integer number from 0 to 50, you are required to evaluate the square sum of its specified sub...
分类:
其他好文 时间:
2014-08-20 14:03:22
阅读次数:
248
DescriptionThere are N stones, which can be divided into some piles arbitrarily. Let the value of each division be equal to the product of the number ...
分类:
其他好文 时间:
2014-08-20 13:55:32
阅读次数:
245
一、定义jobdeclare job number;begin dbms_job.submit( job =>job, what=>'PROC1;PROC2;', next_date => ...
分类:
数据库 时间:
2014-08-20 12:13:52
阅读次数:
286
这是利用树状数组的性质来求解逆序数的问题,在这里我们首先得温习一下逆序数的概念,才能更好地理解这一道较为数学的题目!
当然,这也是一道树状数组较为基础的一道题目。...
分类:
其他好文 时间:
2014-08-20 01:25:25
阅读次数:
259
1.基本数据类型:Undefined,null,Number,String,Boolean.引用数据类型:保存在内存中的对象.2.JS不允许直接访问内存中的位置,不能直接操作对象的内存空间.所以操作对象时,实际上是操作的对象的引用,而不是实际的对象.3.var num1 = 1;var num2 =...
分类:
Web程序 时间:
2014-08-20 01:22:25
阅读次数:
190
今晚再刷一题,题目如下:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices o...
分类:
其他好文 时间:
2014-08-20 01:20:15
阅读次数:
197
Problem Description
Number theory is interesting, while this problem is boring.
Here is the problem. Given an integer sequence a1, a2, …, an, let S(i) = {j|1j is a multiple of ai}. If S(i) is not ...
分类:
其他好文 时间:
2014-08-20 00:07:25
阅读次数:
210
Description
Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so it ma...
分类:
其他好文 时间:
2014-08-19 22:28:45
阅读次数:
278
Given a(decimal -e.g. 3.72)number that is passed in as a string, print the binary representation. If the number can not be represented accurately in b...
分类:
其他好文 时间:
2014-08-19 22:04:15
阅读次数:
233