14. Sorting

14.4 REMOVE FIRST-NAME DUPLICATES

Reference

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

1
b

and ends at time

1
e

, the upper and lower sides of its corresponding rectangle must be at

1
b

and

1
e

, respectively.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.