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 ovs-code avatar ovs-code 66
#2 KasperKivimaeki avatar KasperKivimaeki 67
#3 Mukundan314 avatar Mukundan314 68
#4 DialFrost avatar DialFrost 71
#5 fuzzylojik-golf avatar fuzzylojik-golf 75
#6 mousetail avatar mousetail 81
You must be logged in to submit a solution.