GROUPS
CodeChefOpen on judge ↗
In an Unix like environment, an administrator wants do following task: There n programs and k users. Each user has permission to execute certain programs. Now, the administrator wants to divide programs into minimum number of groups, so that each program belongs to an unique group, and assign users to these groups, such that only users belonging to the group have permissions to execute programs in
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start