Google Phone Screen | L4 | US
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-09-24Added By Anonymous
Source: Link
Company: Google
Role: L4
Interview Stage: Phone Screen
Location: US
Year: unknown
Original Post Content:
Guess the password
You are given a set of tuples and you need to guess a password from the given input. The tuples need not be of same length. There is only one password possible in the given input. The order of the characters need to be maintained for generating the password. The password will be of maximum 7 characters. The characters in the password are not repeated.
e.g. below
bca
bcd
cad
The password here is 'bcad'.
bcda cannot be the password because the d should occur only after 'a' or 'c'.