Kotak Mahindra, Recently Asked Online Assessments in March, 2026 | Overlapping Rectangles | Geometry & Math
Question · Posted Jun 2026
Question 1: Overlapping Rectangles Problem Statement Given 2 rectangles parallel to the coordinate axes, find the total area covered by them. Input Format The first line of input contains T - the number of test cases. It is followed by 2 * T lines. The first line of each test case contains 4 integers - xbl, ybl, xtr, ytr - the bottom-left and top-right coordinates of rectangle-1. The second line of each test case contains 4 integers - xbl, ybl, ...
The full answer & interview discussion are available to premium members.
Log in Create a free account