← Flipkart questions
CodingReported in a candidate post, Sep 2020

Encode and decode an N-ary tree into a binary tree

Filed under Flipkart

Encode an N-ary tree into a binary tree and decode the binary tree back to the original N-ary tree. Any encoding is fine as long as decode(encode(tree)) equals tree.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.