Number of Ways to Wear Different Hats to Each Other

Problem overview from a real Uber interview:

Uber phone screen: Process a 2D preference array for up to 10 people and 40 items using bitmask DP to compute valid assignments modulo 10^9+7.

Check more interview questions and experiences about Uber

Please log in to view interview details