Unisex Bathroom Problem

A synchronization practice problem requiring us to synchronize the usage of a single bathroom by both the genders.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.