Hello every one
I've solved this problem but I have different questions about this problem:
The link : Frequent Values
The questions:
1 — How can I solve this problem if the values not sorted?
2 — How can I solve this problem online?
3 — How can I solve this problem if the values not sorted and online?
Edit: The link for the first question is here: values not sorted