Home & blog

Tag: algorithm

Pairing two identical arrays, avoiding duplicates

19 Jun 2020 algorithm

I recently answered a question on Stack Overflow where the OP had two identical arrays, and wished to pair them, but avoiding duplicates. Turned out to be a bit of a brain burner, so I thought I'd post up my approach here.