14.4 REMOVE FIRST-NAME DUPLICATES
14.5 RENDER A CALENDAR
Consider the problem of designing an online calendaring application. One component of the design is to render the calendar, i.e., display it visually.
Suppose each day consists of a number of events, where an event is specified as a start time and a finish time. Individual events for a day are to be rendered as non-overlapping rectangular regions whose sides are parallel to the X- and Y- axes. Let the X-axis correspond to time. If an event starts at time
and ends at time
, the upper and lower sides of its corresponding rectangle must be at