line_reflection

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 0 Imported by: 0

README

< Previous                  Next >

356. Line Reflection (Medium)

[Hash Table] [Math]

Similar Questions

  1. Max Points on a Line (Hard)
  2. Number of Boomerangs (Easy)

Hints

Hint 1 Find the smallest and largest x-value for all points.
Hint 2 If there is a line then it should be at y = (minX + maxX) / 2.
Hint 3 For each point, make sure that it has a reflected point in the opposite side.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL