Please, check this post answer [https://stackoverflow.com/a/7272702]. Try to
use quickselect and then iterate your slice.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an e
I'm working on algorithm to get top N values from int slice.
This one is the best I can do. Heap structure. Is it possible to make it
better?
https://play.golang.org/p/Gz00Njz-54s
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe