Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
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.
...
Asked at:TikTok
More TikTok interview questions
- Pattern First Occurrencemedium
- [CodeSignal] Minimum Score Suppressormedium
- [CodeSignal] Optimal Voucher Allocationmedium
- Remove Consecutive for Balancemedium
- [CodeSignal] Synchronized Pipeline Delayshard
- Path Prefix Routermedium
- Character String Addereasy
- Tiered Order Pricinghard
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.