You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight line in the XY plane.
This question is very commonly asked in Programming Interview.
#LeetCode
Author : Shahrukh Khan
Links
Blog : https://pytech-solution.blogspot.com/