Equal Hamming Distance

[Solved] Equal Hamming Distance CodeChef Starters 75

[Solved] Equal Hamming Distance CodeChef Starters 75

Chef is given two binary strings A and B, each having length N. Chef wants to find the number of binary strings �C, of length �N, such that �(�,�)=�(�,�)H(A,C)=H(B,C), where �(�,�)H(X,Y) denotes the hamming distance between the strings �X and �Y. Since the answer can be large, output it modulo 109+7109+7. Note: Hamming distance between two strings…