You are viewing a single comment's thread. Return to all comments →
can you explain the question why you need to use two dictionaries
Hi, one dict is to keep track of the frequency of each elements (key: element, value: frequency). The other keeps track of frequency of the frequency (key: frequency, value: number of elements that has that frequency). Hope it helps!
much needed this explaination! thanks helped alot