Computer Science, asked by sheukashyap627, 6 days ago

Graph Outline
5-year-old Rebecca loves to draw. She has recently shifted to a new house. She notices a bunch of cardboard boxes kept in a row. She's bored and starts drawing the boxes on paper as rectangles on a cornrnon baseline. After drawing ther, she wants to find the top outline of the rectangles she's drawn. She needs your help! She's 5 after all. precocious child to be sure, but a child nonetheless. But she doesn't want to show you the drawing until it's complete. So she gives you the information about the drawing as a series of triples (x,y,z) x is the left end of a rectangle, y is the right end of the rectangle, and z is the height. She wants the points of the outline output as (p.h) pairs where p starts from the leftrnost end and roves towards the right Here h is the height of the outline at position pon the base line. Only the points where there is a drop or rise in the height o the outline are to be given. Here is an example: 12 (1.10) (10.10) 19:53​

Answers

Answered by angelinpraisy01
0

Answer:

what is the question here

....

Similar questions