|
-
October 23rd, 2008, 11:20 PM
#1
Silhouette of some buildings in a city - Need help coding this algorithm, please!
Imagine the skyline of a city:- you are given (in integers)
(1) the x-coordinate,
(2) the height,
(3) and the width
measurements for a number of the buildings.
You are required to give the silhouette of those buildings in that city.
By the way, someone else has a descriptive posting in this problem domain (in the link provided below), in an entirely unrelated discussion.
I wish that, they had posted the solution as well.
http://www.facweb.iitkgp.ernet.in/~n...xperiences.pdf
Last edited by 1_2_Soar; October 23rd, 2008 at 11:41 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|