There are two rectangles defined by corner points LowerRight and UpperLeft. The task is to write a function which would check if two given rectangles overlap or not. (Solution in Java).
Was asked this question for Microsoft v- interview SDET position. Jan 2010.
Example:
Attached file(s)
rectangle_overlaping.jpg
Who Voted for this Question
Article
Common Interview is a place to help people keep up with the latest trends in job interviewing. You can interact by asking interview questions or by providing answers and ratings. Choose from thousands behavioural, technical, testing or program management questions and interview puzzles.
Answers