Trying to output any binary string with an odd number of 1s, using only 1, 0, U, and *
I’ve tried this but I’m not sure if it’s correct.
((101)U(011)U(110**)U(11)U(010))**
Is there a shorter and more correct answer to this? I’m kind of confused, am I missing a trick that I should know about?
2