Write an algorithm program in java for the following question..
In a VLSI design techniques,they used rectangles to design circuits.
EVery rectangle is to be placed according to x,y coordinates.
Check whether or not two rectangles overlap each other.
Here overlapping of rectangles is acceptable, if
1) one rectangle intersect with other.
2) one rectangle fully covers other.
The time of algorithm should not exceed o(n logn).


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?

3 Answers   Aricent,


Can a static method be final?

0 Answers  


What is the buffer limit?

0 Answers  


What is a boolean used for?

0 Answers  


Why is string class considered immutable?

0 Answers  






Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?

2 Answers   RBS,


What is the program development process?

0 Answers  


Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.

2 Answers  


What is size_t?

0 Answers  


How to sort array in descending order in java?

0 Answers  


Difference between String and StringBuffer.

3 Answers   GE, IBM,


What is the difference between inheritance and encapsulation?

0 Answers  


Categories