This website contains ALL LeetCode **Premium** problems for
**FREE!!**.

All leaked interview problems are collected from Internet.

All leaked interview problems are collected from Internet.

Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given points.

**Example 1:**

Given *points* = `[[1,1],[-1,1]]`

, return `true`

.

**Example 2:**

Given *points* = `[[1,1],[-1,-1]]`

, return `false`

.

**Follow up:**

Could you do better than O(*n*^{2})?

**Credits:**

Special thanks to @memoryless for adding this problem and creating all test cases.

b''