I will have a list of elements and I need to output the list of most frequently occurring elements.
I liked how this problem can be solved with bucket sort and how simple the solution gets. I solved this problem before by using hashmaps, classes, and priority queue
My previous solution took 18ms and this bucketsort solution took 7ms 🤩
Simply brilliant solution.