You already have your base case, in which case you would then store/print out the "prefix" (now a permutation of the entire string). There is a more efficient way to do it by swapping characters ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果
反馈