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
- Previous: Given IP address 200.1.2.0 make four equal subnets: (i) First block address (ii) Total usable hosts (iii) Mention block wise IP address
- Next: Write a simple C program in which a function is called by value, and show its output: the previous value of the variable and the…
- All questions in MRA Senior Computer Operator February 2023 – Written (IBA)