Problem 3173 · Medium

Bitwise OR of Adjacent Elements

Walk the array in neighbouring pairs and write the bitwise OR of each pair, one entry shorter than the input.

Open the interactive visualisation