@@ -0,0 +1,378 @@
+class Solution:%0A    # @param %7Binteger%5B%5D%7D nums%0A    # @return %7Binteger%5B%5D%5B%5D%7D%0A    def permute(self, nums):%0A        if len(nums) == 1:%0A            return %5Bnums%5D%0A            %0A        res = %5B%5D%0A        for i in range(len(nums)):%0A            tmp = nums%5B:i%5D + nums%5Bi+1:%5D%0A            sub = self.permute(tmp)%0A            res.extend(%5B%5Bnums%5Bi%5D%5D + s for s in sub%5D)%0A        %0A        return res%0A

Create Perm_005.py