Get the latest tech news
The Skyline Problem in Racket
2013-07-01: The Skyline Problem in Racket The source for this post is online at 2013-07-01-skyline.rkt. A student of mine pointed me at a challenge problem on a code competition site.
A skyline drawing is a list of points that will be connected by interleaving horizontal and vertical lines. The problem has the property that the input list can be rearranged or have any part duplicated any number of times and have the same output: This queue will hold pairs where the is the sorting key and the is a function that executes the appropriate action when that event triggers.
Or read this on Hacker News