We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
One which holds key value pair of number and its frequencies. And the other which holds key value pairs of a frequency and all the number having that particular frequency. Such as.
Frequency Queries
You are viewing a single comment's thread. Return to all comments →
Solved it by creating two dictionaries.
One which holds key value pair of number and its frequencies. And the other which holds key value pairs of a frequency and all the number having that particular frequency. Such as.
Full python solution Hackerrank - Frequency Queries Solution