Tree circumference, stock buy/sell, mirror tree, serialized tree, and rotated array
Filed under PubMatic
The question
Solve problems including printing the circumference of a tree, finding max profit from stock prices, creating a mirror tree, serializing/deserializing a binary tree of strings to/from a char* stream, and searching in a sorted and rotated array.
No write-up yet. Related questions below have one.
Related PubMatic questions
Collected from public candidate posts and coding forums. Updated Nov 2026.