Description
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:
1 | Input: [[1,1],[-1,1]] |
Example 2:
1 | Input: [[1,1],[-1,-1]] |
Solution
1 | class Solution { |
Why don't you come to your senses?
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:
1 | Input: [[1,1],[-1,1]] |
Example 2:
1 | Input: [[1,1],[-1,-1]] |
1 | class Solution { |