I have an list of array like and I needs to show in table view
let data = ["a", "a", "b", "c"]
In my table view, I need to show all the string in each row. That i done.But i need to find the duplicate and needs to update the count like say. In my array i have a
as 2 counts
.
So in my table view I needs to show like
a(2)
b
c
Any help will be highly appreciated. Thanks