algorithms.tutorialhorizon.com
Generate All Strings of n bits. | Algorithms
Generate All Strings of n bits, consider A[0..n-1] is an array of size n.