Ø there is good gist.
Ø this algorithm 10x faster …
I don’t believe it is faster as the slice size increases. What you propose is
O(N**2) vs O(N). Try a test with a slice 10 or 100 times the size.
John
John Souvestre - New Orleans LA
From: [email protected] [mailto:[email protected]] On
Behalf Of ali oygur
Sent: 2016 December 14, Wed 05:41
To: golang-nuts
Subject: [go-nuts] Re: Idiomatic way to remove duplicates in a slice
there is good gist.
https://gist.github.com/alioygur/16c66b4249cb42715091fe010eec7e33
12 Ağustos 2012 Pazar 06:33:54 UTC+4 tarihinde Sathish VJ yazdı:
Is there an efficient, idiomatic way to remove duplicates in a slice?
If possible, I do want to retain the original order of items.
--
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 email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
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 email
to [email protected].
For more options, visit https://groups.google.com/d/optout.