Interview Question
- 0of 0 votes
Answersyou are given N (1<=N<=20000) squares on X-Y plane. Your task is to find the area which is
- chandrasekhar1754 July 11, 2017 in United States
common to all the squares (Area of intersection of all the squares)
Input
First line contain T the number of test cases. Then T test cases follow. First line of each test case
contains N, the number of squares Each of following N line contains 3 integer (X, Y, L) cordinate
of lower left vertex and size of the square.
-10^9<=X,Y<=10^9 1<=L<=10^9 for java code| Report Duplicate | Flag | PURGE
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.