Have the function OverlappingRectangles (strArr) read the strarr parameter being passed which will represent two rectangles on a Cartesian coordinate plane and will contain 8 coordinates with the first 4 making up rectangle 1 and the last 4 making up rectange 2. It will be in the following format: ["(0,0),(2,2),(2,0), (0,2),(1,0),(1,2), (6,0),(6,2)"] Your program should determine the area of the space where the two rectangles overlap, and then output the number of times this overlapping region can fit into the first rectangle. For the above example, the overlapping region makes up a rectangle of area 2, and the first rectangle (the first 4 coordinates) makes up a rectangle of area 4, so your program should output 2. The coordinates will all be integers. If there's no overlap between the two rectangles return 0.
Software Trainee Interview Questions
12,673 software trainee interview questions shared by candidates
Explain your final year project.
Coding que: Return number of islands (available in leetcode)
Talk about your project, tell us an experience during college from which you learnt something.
Me preguntó sobre mis habilidades técnicas y sobre mi interés en el proyecto
Why did u choose software development field?
Write C program for any sorting Algorithm
Given an unsorted array, on how many positions does it differ from the sorted version of that array?
Questions about the company
Explain about your project.
Viewing 261 - 270 interview questions
See Interview Questions for Similar Jobs
Java J2ee Software DeveloperSoftware Engineer TraineeRuby DeveloperJava J2ee Software EngineerSoftware Engineer RubySdeNew Grad SoftwareRails DeveloperSoftware Developer Entry LevelJunior Software EngineerSoftware Engineer C#Ruby On Rails Software EngineerJava Software EngineeringSoftware Developer FresherRuby On Rails DeveloperSoftware Engineering GraduateEntry SoftwareSoftware Enginner