Given a positive integer n, list all the bit sequences of length n that do not have a pair of consecutive 0s. Write a C or C++ program to solve this problem. The input is an integer n
Run your program on the following six inputs: n = 6, 7, 8, 9, 10, 11
Comments
Leave a comment