Check If It Is a Straight Line Problem
Check If It Is a Straight Line Problem — ExecCode Easy DSA Practice
Solve the Check If It Is a Straight Line problem on ExecCode. Free online easy DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.
Description You are given an integer 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. Examples Example 1 Input: coordinates = [[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]] Output: t…
Practice Check If It Is a Straight Line free on ExecCode. Browse more ExecCode DSA problems.