A friend and I are going back and forth with brain-teasers and I have no idea how to solve this one. My assumption is that it\'s possible with some bitwise operators, but n
Define "best". Here's a python version:
len(range(x)+range(y))
The + performs list concatenation, not addition.
+