Loading...

The Bouncer

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

Build a permission management class that tracks access rights for a user. It should support adding a permission, removing a permission, and checking whether a specific permission is currently granted. Use an efficient underlying data structure.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.