Skip to content
RED SAG Skills
hard20 pts · first answer countsgraphsbinary-trees

Flattening a tree into a list in place

You flatten a binary tree in place into a "linked list" using right pointers, in preorder. Which in-place step works in O(1) extra space?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions