Tap here to switch tabs
Problem
Submissions

Problem: Bitwise OR of Even Numbers in an Array

Bitwise OR of Even Numbers in an Array asks you to combine the bitwise OR of every even value in an integer array, returning zero when none are present.

Statement

Given an integer array nums, return the bitwise OR value of all even numbers in nums.

If the array contains no even integers, return 00.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 1≤1 \leq nums[i] ≤100\leq 100

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Bitwise OR of Even Numbers in an Array

Bitwise OR of Even Numbers in an Array asks you to combine the bitwise OR of every even value in an integer array, returning zero when none are present.

Statement

Given an integer array nums, return the bitwise OR value of all even numbers in nums.

If the array contains no even integers, return 00.

Constraints:

  • 1≤1 \leq nums.length ≤100\leq 100

  • 1≤1 \leq nums[i] ≤100\leq 100