← Flipkart questions

Determine elephant height orders from pairwise comparisons

Filed under Flipkart

Given n elements and m pairwise comparisons indicating relative order, determine a valid topological order. If multiple valid topological orders exist, generate all possible valid orders.

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.