Amazon - SDE2 - Phone Screen (LC - Hard :( )

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-09-11Added By Anonymous
Source: Link

Company: Amazon
Role: SDE2
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

The recruiter reached out to me, I completed the online assessment, and then proceeded to the phone screen.

1 behavioral questions and 1 technical question:

Variation of https://leetcode.com/problems/concatenated-words/

Given a large list of words. Some of these are compounds, where all parts are also in the List. Write a method that will find all combinations where one word is a composite of two or more words from the same list and return them.

Input: [rockstar, rock, stars, rocks, tar, star, rockstars, super, highway, high, way, superhighway]

Output: [[rock, star], [rocks, tar], [super, highway], [super, high, way],...]

Comments