carloscn / carloscn/structstudy
二叉树展开为链表(leetcode-114)
Open
Level-middle
二叉树
链表
- Dominant language
- C
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述:
给你二叉树的根结点 root ,请你将它展开为一个单链表:
展开后的单链表应该同样使用 TreeNode ,其中 right 子指针指向链表中下一个结点,而左子指针始终为 null 。
展开后的单链表应该与二叉树 先序遍历 顺序相同。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.