← Questions

Resolve user roles across an account hierarchy

0
StripeCodingLast asked Jan 2026

Accounts form a hierarchy, and users are given roles on accounts. Given the hierarchy and the role assignments, work out the roles a user has on a given account, including roles that apply through the account's ancestors.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding