
114. Flatten Binary Tree to Linked List
Difficulty:: Medium
Given a binary tree, flatten it to a linked list in-place.
For example, given the following tree:
1 |
1 |
The flattened tree should look like:
1 |
1 |
Solution
Language: Java
1 |
|

Difficulty:: Medium
Given a binary tree, flatten it to a linked list in-place.
For example, given the following tree:
1 |
1 |
The flattened tree should look like:
1 |
1 |
Language: Java
1 |
|
近期评论