LLD for Tiny URL Amazon interview

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-04-18Added By Anonymous
Source: Link

Company: Amazon
Role: sde i, sde ii
Interview Stage: Onsite
Location: unknown
Year: unknown

Original Post Content:

I was asked to do LLD for Tiny URL. I find it very difficult to come up with entities.

Entities I found:
URL
URLManager
ShortCodeGenerator (Interface, will use strategy pattern)

Felt like interviewer wanted to know how URL expires will be handled which confused me a lot. I really got confused whether he wanted LLD or HLD.

Comments