Write a recursive process to build all binary strings of length n that do not have two consecutive 1's.

Write a recursive process to build all binary strings of length n that do not have two consecutive 1's.

From the MRA Senior Computer Operator February 2023 – Written (IBA) exam, question 2 of 11.

More from this paper