Print all possible strings of length k that can be formed from a set of n characters (in c language)

前端 未结 0 1264
南方客
南方客 2020-12-18 14:23

The output should be like this Input: set[] = {\'a\', \'b\'}, k = 3

Output: aaa aab aba abb baa bab bba bbb

相关标签:
回答
  • 消灭零回复
提交回复
热议问题