leetcode 206 Reserve Linked List(反轉鏈表) python3 遞歸&迭代思路

全部Leetcode題目不按期彙總在 Github, 歡迎你們批評指正,討論交流。 # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def reverseList(self, h
相關文章
相關標籤/搜索