Amazon, Recently Asked Online Assessments in August, 2025 | Points on a Line | Geometry & Math
Amazon · Question · Posted Jun 2026
Question 1: Points on a Line Problem Statement Given 3 points on a 2D plane, check if they can be connected by using a single straight line (i.e., check if they are collinear). Input Format The first line of the input contains T - the number of test cases. It is followed by 3 * T lines, where each line contains 2 integers x and y, representing the coordinates of the 3 points respectively. Output Format For each test case, ...
The full answer & interview discussion are available to premium members.
Log in Create a free account