Consider the 7x7 grid shown below:

Each cell must be filled in with an integer from 1 to 7 that represents the height of the building. The numbers given at the sides (top, bottom, left, right) represent how many buildings are visible when seen from that location. A taller building blocks the view of all shorter buildings behind it. Also, you want each row and column to contain all the numbers from 1 to 7 exactly once. Can you solve the puzzle?
-via The Eighth World Puzzle Championship. A discussion can be found in Tanya Khovanova's blog