[LeetCode] Non-negative Integers without Consecutive Ones 非负整数不包括连续的1

Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT contain consecutive
posted @ 2017-06-07 23:14  Grandyang  阅读(5508)  评论(0)    收藏  举报
Fork me on GitHub