Binary Tree to Linked List
Given a binary tree root
, convert it to a singly linked list using an inorder traversal.
Constraints
n ≤ 100,000
wheren
is the number of nodes inroot
https://binarysearch.com/problems/Binary-Tree-to-Linked-List
Examples
Example 1
Input
- root =
Output
- answer =
Leave a comment