Summer Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
14
:
02
:
55
:
58
Back to Dashboard
Lowest Common Ancestor from Serialized Tree
Medium
You are given a serialized binary tree string and a list of target node values. Return the value of their lowest common ancestor (LCA).
The serialization uses a preorder traversal format with semicolons as delimiters. # represents a null node. You may define the serialization format yourself as long as it is consistent with the examples.
...
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.