โ† Sandvine questions

Validate if parent-child pairs form a Binary Tree

Filed under Sandvine

The question

Given an array of integer pairs (c, p) where p is the parent of c, determine whether the pairs form a valid binary tree.

No write-up yet. Related questions below have one.

Related Sandvine questions

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