pull/61/merge
srikanth chekuri 8 years ago committed by GitHub
commit be3bc83b9d

@ -7,7 +7,7 @@ Arrays
- Paginate an array with constraints, such as skipping certain items.
- Implement a circular buffer using an array.
- Given array of arrays, sort them in ascending order.
- Given an array of integers, print out a histogram of using said array; include a base layer (all stars)
- Given an array of integers, print out a histogram using the said array; include a base layer (all stars)
- E.g. `[5, 4, 0, 3, 4, 1]`
```

@ -0,0 +1,35 @@
---
id: 1
title: Histogram Stars
topics: [array]
difficulty: 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:
******
*****
*
****
*****
**
'''
```
```
Print out a vertical version of the histogram.
*
** *
** **
** **
** ***
******
'''
```
Loading…
Cancel
Save