201. Bitwise AND of Numbers Range

Description

Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.

Constraints

Approach

Examples

Input: [5, 7]

Output: 4

Solutions

Follow up

Last updated

Was this helpful?