JZ-C-28
剑指offer第二十八题:字符串的排列
1 //============================================================================ 2 // Name : JZ-C-28.cpp 3 // Author : Laughing_Lz 4 // Version : 5 // Copyright : All Right Reserved 6 // Description : 字符串的排列 7 //============================================================================ 8 9 #include <iostream> 10 #include <stdio.h> 11 using namespace std; 12 13 void Permutation(char* pStr, char* pBegin); 14 void Permutation(char* pStr) { 15 if (pStr == NULL) { 16 return; 17 } 18 Permutation(pStr, pStr); 19 } 20 void Permutation(char* pStr, char* pBegin) { 21 if (*pBegin == '