19. Remove Nth Node From End of List——linklist

class Solution(object): def repeatedNTimes(self, head, n): left = right = head for i in range(n): right = right.next if right is None: return head.n
相關文章
相關標籤/搜索