Unsolved QSort by most often values
-
I just start use std::algorithms and QtAlgorithms and can't find something like sort_by_most_often. I have a concept how can i do such stuff for myself, it would take some time to create such algorithm, but i'm 100% sure alot of people did that long before me, and such thing should exist in Qt(or at least in std).
P.S. google don't help very much..
-
Must it happen in place (no copy with size of the original container created)? Must the sort be stable (preserving order between equal elements)?
-
@Eeli-K said in QSort by most often values:
container
sorry, what container?
I tell at the beginning, i'm new in that algorithms, i can't understand second part of your message at all.
-