Available question text
Given a binary tree root, produce a string from a preorder traversal where each node is its value followed by its children in parentheses; omit empty "()" pairs except you must include "()" for a missing left child when a right child exists to preserve structure. This is a tree traversal and string-construction problem that requires careful handling of parentheses to reflect absent children.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 606. Construct String from Binary Tree
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source