Hierarchical Access Control for an Advertising Platform
Company: Pinterest
Role: Machine Learning Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question tests practical application of graph traversal and access control system design using a directed acyclic group hierarchy. It evaluates a candidate's ability to model inheritance-based permissions, choose appropriate data structures for efficient ancestor lookups, and handle grant/revoke semantics under read-heavy workloads — core competencies in coding and algorithms interviews for roles requiring systems thinking.