Tap here to switch tabs
Problem
Submissions

Problem: Check if Bitwise OR Has Trailing Zeros

med
30 min
Try to solve the Check if Bitwise OR Has Trailing Zeros problem.

Statement

Given an array of positive integers nums.

Determine whether it is possible to select at least 22 elements from nums such that the bitwise OR of the selected elements contains at least 11 trailing zero in its binary representation.

Return true if it is possible to select such elements, and false otherwise.

Constraints:

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

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

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Check if Bitwise OR Has Trailing Zeros

med
30 min
Try to solve the Check if Bitwise OR Has Trailing Zeros problem.

Statement

Given an array of positive integers nums.

Determine whether it is possible to select at least 22 elements from nums such that the bitwise OR of the selected elements contains at least 11 trailing zero in its binary representation.

Return true if it is possible to select such elements, and false otherwise.

Constraints:

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

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