Problem: Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of po ...
Given n points in the plane that are all pairwise distinct, a boomerang is a tuple of points i, j, k such that the distance between i and j equals the distance between i and k the order of the tuple ...
2016-11-09 23:59 6 8775 推薦指數:
Problem: Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of po ...
Given a grid where each entry is only 0 or 1, find the number of corner rectangles. A corner rectangle is 4 distinct 1s on the grid that form ...
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting ...
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting ...
A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand o ...
Given a matrix and a target, return the number of non-empty submatrices that sum to target. A submatrix x1, y1, x2, y2 is the set of all cells ...
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates ...
We are given an array A of positive integers, and two positive integers L and R (L <= R). Return the number of (contiguous, non-empty ...