Question bank
4,310 interview questions, answered.
Reference answers, what the interviewer is really testing, how it is graded, and the follow-ups that come next.
Easy 0Medium 5Hard 1
Filters · onDifficulty, topic, company
5 questions
- 1Top k frequent elementsMediumCoding·
Amazon, Apple - 2If a competitor introduces a new feature, excluding user feedback and engagement metrics, what other data sources would you analyze to decide on developing a similar feature?MediumData·
SAP - 3Design a system capable of identifying ships that deviate from their course using a dataset that tracks ship positions, recorded as tuples containing (ship_ID, x, y, z, timestamp), with irregular timestamp intervals.MediumSystem design·
SAP - 4Modify this PyTorch pseudo-code to perform negative sampling if the pos_ids are known: label #shape=[batch_s, pos_ids] hidden #shape=[batch_s, ch] logits #shape=[ch, C] out=np.dot(logits, hidden(X)) #shape=[batch_s, C] loss=cross_entropy(out, label)MediumProduct·
SAP - 5What's your favorite product and why?MediumProduct·
Accenture, Amazon