劍指offer-38.字符串的排列(或數字全排列)

題目來源:https://leetcode-cn.com/problems/zi-fu-chuan-de-pai-lie-lcof/python 輸入一個字符串,打印出該字符串中字符的全部排列。數組 你能夠以任意順序返回這個字符串數組,但裏面不能有重複元素。app 示例:ui 輸入:s = "abc" 輸出:["abc","acb","bac","bca","cab","cba"]code 思路:
相關文章
相關標籤/搜索