Top-K Frequent Elements Algorithm: Efficient Scaling with Min-Heap and Java | ProfileDocker