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
相关文章
相关标签/搜索