Grammarly logoGrammarly
CodingMembers

Recover a Tree From Preorder Traversal (LC 1028)

Members only

A recurring binary-tree problem in the Grammarly / Superhuman phone screen: serialize a tree in a depth-annotated format, then reverse the process. It is the hardest common screen question, and solving it while communicating well has still not always been enough.

SWE
tree
tree-traversal
parsing
hard
Frequency
Low
Last asked
2026-07-16
Stage
phone-screen

Members get

  • Full problem statement
  • Known variants to clarify
  • 3 common pitfalls
  • 1 follow-up question with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...