#3688
Bitwise OR of Even Numbers in an Array
easy · 84.8% accepted · 35 likes · top 96%
array · bit manipulation · simulation
Description
You are given an integer array nums.
Return the bitwise OR of all even numbers in the array.
If there are no even numbers in nums, return 0.
Solution