Bloomberg | Phone | First Unique Character & Possible Routes
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-11-29Added By Anonymous
Source: Link
Company: Bloomberg
Role: SDE New Grad
Stage: Phone
Location: London
I had 2 problems:
Question 1:
https://leetcode.com/problems/first-unique-character-in-a-string/
Question 2:
Print all possible routes from a start node to a destination node. For eg. start = C, end = D
A <----> B
A <----> C
A <----> D
B <----> C
B <----> D
Expected output:
C,A,B,D,
C,A,D,
C,B,A,D,
C,B,D,
Role: SDE New Grad
Stage: Phone
Location: London
I had 2 problems:
Question 1:
https://leetcode.com/problems/first-unique-character-in-a-string/
Question 2:
Print all possible routes from a start node to a destination node. For eg. start = C, end = D
A <----> B
A <----> C
A <----> D
B <----> C
B <----> D
Expected output:
C,A,B,D,
C,A,D,
C,B,A,D,
C,B,D,