Back to Browse

[Leetcode] 206. Reverse Linked List 中文解說 - Python

422 views
May 24, 2023
14:50

0:00 題目說明 1:42 iterative solution思路說明 5:09 iterative solution程式說明 6:42 iterative solution複雜度分析 7:25 recursive solution思路說明 11:53 recursive solution程式說明 13:53 recursive solution複雜度分析 Problem:https://leetcode.com/problems/reverse-linked-list/ iterative solution: Time O(n), Space O(1) recursive solution: Time O(n), Space O(n) Code:https://github.com/kobukuro/leetcode/blob/master/problems/easy/reverse_linked_list_206/solution.py 如果想贊助我,以下是贊助連結,謝謝。 https://portaly.cc/kuan-ting-chen/support

Download

0 formats

No download links available.

[Leetcode] 206. Reverse Linked List 中文解說 - Python | NatokHD