I have a problem I'm supposed to solve using recursion:
Hamming distance. The Hamming distance between two bit strings of length n is equal to the number of bits in which the two strings differ. Write a program that reads in an integer k and a bit string s from the command line, and prints out all bit strings that have Hamming distance at most k from s. For example if k is 2 and s is 0000 then your program should print out:
0011 0101 0110 1001 1010 1100
Hint: choose k of the N bits in s to flip.
I have no idea where to begin could someone point me in the right direction?