61. 旋轉鏈表

class Solution: def rotateRight(self, head, k): """ :type head: ListNode :type k: int :rtype: ListNode """ if not head or not head.next or k==0: return head num
相關文章
相關標籤/搜索