This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Here's my solution
Liked this one, and good timing! I recently had to solve a similar problem with matching pairs in my day job.
First I solved this in a convoluted way, then I figured out a simpler path. - terry10
My solution could probably be a little simpler/more elegant, but it's short and works well.
I think it is a good challenge
first you have to create all combinations and hence remove those duplicates with different orders.