It’s been a while since a Relevance Challenge was posted, so here’s a fun one that I came across in a discussion today.
Suppose one has a tuple result of tuple (“a”, “a”, “c”, “b”). Is it possible, and in how many ways, can this be reversed to give a result of (“b”, “c”, “a”, “a”)?
unique values will sort strings and give unique values; in this case we wish to reverse without sorting, and keep duplicate values.
Private message me with your solutions, and I’ll post solutions next week along with the winning 'Fixers !
So far two unique solutions have been provided.
Working solutions thus far have been posted by: