729 - The Hamming Distance Problem


Difficulty : easy

Solution Description :

Permutation Problem

Input N & H
N=5 and H=3
Then You got the string 00111

Now find the all permutation for string 00111

You can use STL C++ next_permutation function