Click here to see the full article post
Good article @awice.
Hope Leetcode releases many more articles to come!
Is it required to provide Java solutions for these articles? This is the first time I have ever seen Python solution in an article.
Not sure why you need to append # in the key ? seems the key would be unique without that also ?
The keys will not be unique if no delimiter is used for example say a string is "ab" where a occurs 12 times and b occurs 1 times so the string is 121 and say there is another string where a occurs 1 times and b occurs 21 times and then also string becomes 121. So the delimiter (here #) is needed to separate the count for each character in string format.
Since you don't like the # thing in the solution you might find this better
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.