4 ms·
Something similar(?) would be to use a Go map to keep track of which items have already been seen. It would only need one pass through the array, with some map
by incompatible 8y ago
Something similar(?) would be to use a Go map to keep track of which items have already been seen. It would only need one pass through the array, with some map hashing overhead.