Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4d682cc

Browse files
refactor 447
1 parent 6466e2b commit 4d682cc

File tree

1 file changed

+0
-19
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-19
lines changed

src/main/java/com/fishercoder/solutions/_447.java

-19
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
import java.util.HashMap;
44
import java.util.Map;
55

6-
/**
7-
* 447. Number of Boomerangs
8-
*
9-
* Given n points in the plane that are all pairwise distinct,
10-
* a "boomerang" is a tuple of points (i, j, k) such that the distance
11-
* between i and j equals the distance between i and k (the order of the tuple matters).
12-
*
13-
* Find the number of boomerangs.
14-
* You may assume that n will be at most 500 and coordinates of points are all in the range [-10000, 10000] (inclusive).
15-
16-
Example:
17-
Input:
18-
[[0,0],[1,0],[2,0]]
19-
20-
Output:
21-
2
22-
23-
Explanation:
24-
The two boomerangs are [[1,0],[0,0],[2,0]] and [[1,0],[2,0],[0,0]]*/
256
public class _447 {
267

278
public static class Solution1 {

0 commit comments

Comments
 (0)