[go-nuts] top N values

2018-11-06 Thread Josep Casado Pérez
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

[go-nuts] top N values

2018-11-06 Thread Alex Dvoretskiy
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