Dashboard Temp Share Shortlinks Frames API

HTMLify

Day 66
Views: 2 | Author: djdj
1
2
3
4
5
6
7
class Solution(object):
    def permute(self, nums):
        """
        :type nums: List[int]
        :rtype: List[List[int]]
        """
        return list(itertools.permutations(nums))