https://oj.leetcode.com/problems/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 6The flattened tree should look like:
1 \ 2 \ 3 \ 4 \ 5 \ 6
'풀어본 Algorithm 문제 정리' 카테고리의 다른 글
[OJ.leetcode] sort-colors (1) | 2014.08.17 |
---|---|
[OJ.leetcode] substring-with-concatenation-of-all-words (1) | 2014.08.15 |
[OJ.leetcode] jump-game (1) | 2014.08.13 |
[OJ.leetcode] merge-sorted-array (1) | 2014.08.02 |
[OJ.leetcode] binary-tree-zigzag-level-order-traversal (1) | 2014.08.01 |