Leetcode 3688. Bitwise OR of Even Numbers in an Array
Filter the array for even numbers and compute their cumulative bitwise OR; return 0 if no even numbers exist. This is a straightforward O(n) linear-scan problem involving bitwise operations.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.