- DSA Question -
Given an array, the cost of adding two numbers is addition of two numbers, what is the minimum cost of adding all numbers.
Solved within 10 minutes with running code.
2.HLD
Design an Employee Directory for Amazon where employees can search for other employees
and view their profile and organizational hierarchy.
Requirements
Search by name/email/employee ID
View employee profile
View manager/direct reports
Assume ~1M employees
Read-heavy
Search should be fast
Follow ups:
1.what if a person leaves
2.get all the reportees under a person
Created the HLD on Exacildraw but there was some back and forth during api design and the Partition key for the dynamodb schema I told. Had very less time for the follow ups.
Got rejection next day itself. I was not expecting the rejection, still unable to understand what were they expecting.
Comments (4)


