Created
January 10, 2020 09:18
-
-
Save ShinJJang/cff1265a7b8094614782510a61cbcbd3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import deque | |
def solution(A, K): | |
d = deque(A) | |
d.rotate(K) | |
return list(d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment