You have a string of characters, you need to print out the number of occurances of each character
For e.g.
str = "abracadabra"
app = Application.new(str)
app.run
[
["a", 5],
["b", 2],
["c", 1],
["d", 1],
["r", 2]
]
| Name | Name | Last commit date | ||
|---|---|---|---|---|