[Interview] string permutation

Give a string, which only contains a-z. List all the permutation of upcase and lowcase.

For example, str = "ab",  the output should be
"ab", "aB", "Ab", "AB"

for str = "abc", the output should be
"abc", "abC", "aBc", "aBC", "Abc", "AbC", "ABc", "ABC"


[Thoughts]
首先,

posted on 2013-08-05 14:08  小刀初试  阅读(92)  评论(0编辑  收藏  举报