Skip to content

Instantly share code, notes, and snippets.

@retgoat
Created June 8, 2018 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retgoat/9d49006a88977a96ce8124509df57776 to your computer and use it in GitHub Desktop.
Save retgoat/9d49006a88977a96ce8124509df57776 to your computer and use it in GitHub Desktop.
2. Given the file with random chars, draw a histogram of chars count.
For example for file with content
===
123456789012345678909999991234569999
===
Output should be the following:
1 ***
2 ***
3 ***
4 ***
5 ***
6 ***
7 **
8 **
9 ************
0 **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment