CodingReported in a candidate post, Aug 2019
Binary numbers with consecutive 1s
Filed under Commvault
The question
Given n, find the number of binary strings of length n that contain two consecutive 1s.
No write-up yet. Related questions below have one.
Related Commvault questions
Collected from public candidate posts and coding forums. Updated Nov 2026.