The TransCompilator

Solved LeetCode program · 174 of 1,000

#0201 · Bitwise AND of Numbers Range

Medium Bit Manipulation chunk-04.md

Original English source

The left is 5. The right is 7. The result is left.
For every value from left plus 1 to right.
Set result to bitwise and of result and value.

Show result.

Open in Playground Browse all 1,000 problems

Expected stdout

4