r/InterviewDB • u/SeaworthinessOk5182 • 9d ago
MergeAPI interview technical screen
Wanted to share my recent experience with merge api. It was for a senior role albeit so I did prep more holistic questions with OOP based questions. I didn’t get moved to the next round unfortunately.
I was asked about unifying a schema given different schemas for different employee details like reports to, name, start date etc. then I was asked what my primary keys, foreign key and indexing would be if this was stored in a db. I said I’d use org id, department id and employee id as a primary key. I guess I should have delved in deeper to specify what other tables exist and discuss idempotency as well.I said we can index by org id and manager id, I also said we can index by job status (active employee or not). Then the coding question was to get number of distinct orgs and leadership order (level by level bfs solution) from a merged list of employee objects. Got a running solution and finished running the bonus question too. Not sure about the rejection does anyone have any insight ?