records/08-13/asda111.py
def rotate2(self, nums, k: int) -> None:
        """
        Do not return anything, modify nums in-place instead.
        """
        from collections import deque
        ss = deque(nums)
        k %= len(nums)
        while k:
            val = ss.pop()
            ss.appendleft(val)
            k -= 1
        nums[:] = ss

        Do not return anything, modify nums in-place instead.
        
Do not return anything, modify nums in-place instead.
Do not return anything modify nums in - place instead .
def rotate2(self, nums, k: int) -> None:
        from collections import deque
        ss = deque(nums)
        k %= len(nums)
        while k:
            val = ss.pop()
            ss.appendleft(val)
            k -= 1
        nums[:] = ss
def rotate2 ( self , nums , k : int ) -> None : from collections import deque ss = deque ( nums ) k %= len ( nums ) while k : val = ss . pop ( ) ss . appendleft ( val ) k -= 1 nums [ : ] = ss
Do not return anything, modify nums in-place instead.
Do not return anything modify nums in - place instead .
"""
        Do not return anything, modify nums in-place instead.
        """
self
nums
k
int