← Ongrid questions
CodingHardReported in a candidate post, Oct 2020

Circular array bitwise OR operation

Filed under Ongrid

The question

Given a circular array, replace each element with the bitwise OR of its neighbors. Find an order of operations such that the final bitwise OR of every element equals k.

No write-up yet. Related questions below have one.

Related Ongrid questions

Collected from public candidate posts and coding forums. Updated Nov 2026.