You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
389 B
389 B
id | title | topics | difficulty | |
---|---|---|---|---|
1 | Histogram Stars |
|
easy |
Question
'''
Given an array of integers, print out a histogram using the array. Include a base layer (all stars)
[5, 4, 0, 3, 4, 1] will result in the following:
******
*****
*
****
*****
**
'''
Follow Up
Print out a vertical version of the histogram.
*
** *
** **
** **
** ***
******
'''