[LeetCode] Non-negative Integers without Consecutive Ones

1 · · Feb. 2, 2022, 1:17 p.m.
600. Non-negative Integers without Consecutive Ones Given a positive integer n, return the number of the integers in the range [0, n] whose binary representations do not contain consecutive ones. ...