Flatten Binary Tree to Linked List
stacklinked-listrecursion
Problem
Given the root of a binary tree, flatten the tree into a linked list in-place following pre-order traversal.
Loading...
Given the root of a binary tree, flatten the tree into a linked list in-place following pre-order traversal.