[LeetCode]114.Flatten Binary Tree to Linked List

【題目】 Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \
相關文章
相關標籤/搜索