Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
SOLUTION 1:
全部的点扫一次,然后计算每一个点与其它点之间的斜率。
创建一个MA...
1. 上题目:
Task description
A non-empty zero-indexed array A consisting of N integers is given.
A triplet (X, Y, Z), such that 0 ≤ X < Y < Z < N, is called a double slice.
The sum of d...
Max Increase to Keep City Skyline
In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of an...