Binary Squash

A challenge by mousetail avatar mousetail

Description

Given a list of integers, each on their own line, combine the ones adjacent ones where the binary representation does 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 Score
#1 Natanaelel avatar Natanaelel 55
#2 hallvabo avatar hallvabo 56
#2 lukegustafson avatar lukegustafson 56
#2 ovs-code avatar ovs-code 56
#5 bizy-coder avatar bizy-coder 57
#6 EroticShiveringKingBanana avatar EroticShiveringKingBanana 59
#6 fuzzylojik-golf avatar fuzzylojik-golf 59
#8 Bulmenisaurus avatar Bulmenisaurus 60
#9 AlephSquirrel avatar AlephSquirrel 61
#10 MeWhenI avatar MeWhenI 64
You must be logged in to submit a solution.