Role Permission with Inheritance and Deny Rules

Phone ScreenSnowflakeLast reported August 2026Medium Frequency
Reported
8× across candidate reports
First seen
February 2025
Last reported
August 2026
Reported outcome
mixed

Problem Overview

You are given a role hierarchy represented as a directed acyclic graph (DAG). Roles are numbered 0 to n-1. An array grants contains edges [from, to] meaning role to inherits privileges from role from. Each role i has an allowedList[i] (privileges explicitly granted) and a disallowedList[i] (privileges explicitly blocked). Inheritance…

  • 3 candidate-reported follow-ups — the exact probes interviewers asked, with the trigger for each
  • The rest of the problem statement — full requirements, constraints, and edge cases
  • Approach and trade-offs — what passing candidates did, and the mistakes that sink people
Unlock the full Snowflake catalog
Full problem statements, candidate-reported follow-ups, and walkthroughs — for every Snowflake question.
Unlock with Pro
Already a member? Sign in
Verified Source
Every question is reconstructed from multiple independent candidate reports. Verbatim follow-ups, not invented ones.
Codex Fact-Checked
Technical claims, formulas, and scale numbers are reviewed against primary sources.
Interviewer Follow-ups
The exact follow-ups reported by candidates, with the trigger that prompts each one — plus the mistakes that sink people.
Is this helpful?