Count Binary Strings Without Consecutive 1s

Computer Mathematics Hard 3 views
Back to Questions

Problem Description

Given n, count length-n binary strings with no '11'.

Input Format

One integer n.

Output Format

One integer count.

Sample Test Case

Input:
5
Output:
13

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next