Binary Squash
A challenge by
mousetail
Description
Given a list of integers, each on their own line, combine the adjacent numbers where their binary representations do not share a one.
For example, given the list:
1 6 8 3 4
Would output:
15 7
Each number will be at most 2<sup>16</sup>
Leaderboard
| Author | Points | ||
|---|---|---|---|
| #1 |
|
lukegustafson | 75 |
| #1 |
|
DialFrost | 75 |
| #3 |
|
dmrichwa | 83 |
| #4 |
|
Natanaelel | 84 |
| #4 |
|
MeWhenI | 84 |
| #6 |
|
XenThe | 157 |
| #7 |
|
NicknamedTwice | 167 |