Skip to content
Discussion options

You must be logged in to vote

Yes, you could do with a simple hash table or similar lookup approach to keep track of duplicates potentially. There's a few ways to do it I think depending on what exactly you need.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@mbihoop
Comment options

@patrick-stephens
Comment options

@mbihoop
Comment options

@mbihoop
Comment options

Comment options

You must be logged in to vote
3 replies
@patrick-stephens
Comment options

Answer selected by niedbalski
@alternaivan
Comment options

@patrick-stephens
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants