Uber | Onsite | Bangalore

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2019-12-22Added By Anonymous
Source: Link

Company: Uber

Interview Stage: Onsite

Location: Bangalore


Original Post Content:


Given a graph where each edge is one of the three types: A, B and C. A type edge can only be traversed by a man. B type edge can only be traversed by a woman and C type can be traversed by both.


You need to tell the maximum number of edges that can be removed from the graph so that it can still be fully traversed by both a man and a woman.

Comments