Bloomberg | Phone | Shuffle Cards
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-06-25Added By Anonymous
Source: Link
Company: Bloomberg
Role: unknown
Interview Stage: Phone
Location: unknown
Year: unknown
Original Experience:
1. Create a deck of cards (freedom on which data structure can be used) 2. Shuffle the deck 3. Deal cards from the shuffled deck to a specified number of players 4. Allow players to exchange cards with the dealer if they don't like their cards (like in poker) Similar kind of problem here: https://leetcode.com/problems/shuffle-an-array/solution/
Role: unknown
Interview Stage: Phone
Location: unknown
Year: unknown
Original Experience:
1. Create a deck of cards (freedom on which data structure can be used) 2. Shuffle the deck 3. Deal cards from the shuffled deck to a specified number of players 4. Allow players to exchange cards with the dealer if they don't like their cards (like in poker) Similar kind of problem here: https://leetcode.com/problems/shuffle-an-array/solution/