Role-Based Permission Resolution with Inheritance
Implement getPermission(role) to compute the effective permissions of a role.
Each role contains:
parents: a list of parent role names;allow: a set of explicitly allowed permissions;- `d...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
