F2. Text Histogram

Problem: Text Histogram
Given: A sequence S of integers in the range 1..9
Produce: A function printing a vertical ASCII histogram showing the count of each number. Vertical bars should indicate the number of occurrences of each number, and should be represented with '*' characters. The digit represented should be immediately below each vertical bar. Empty bars should be rendered.

For example, given [1,2,3,4,5,4,4,3], produce

Last modified: Thursday, 10 July 2014, 5:34 PM