Validate a Hierarchy and Compute Propagation Time

Quick Overview

Build a rooted hierarchy from relationship data, detect invalid cycles, and compute the longest root-to-node propagation distance.

Validate a Hierarchy and Compute Propagation Time

Company: Microsoft

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: Build a rooted hierarchy from relationship data, detect invalid cycles, and compute the longest root-to-node propagation distance.

Microsoft logo
Microsoft
Sep 2, 2026
hardSoftware EngineerTechnical ScreenCoding & Algorithms
7
0
Loading...