python实现链表翻转

class Solution: # 返回ListNode def ReverseList(self, pHead): # write code here c=pHead p=None while c: l=c.next c.next=p p=c
相关文章
相关标签/搜索