Java Interview with a FAANG Engineer: What Are My Friends Buying

This is a mock Java Interview with a FAANG engineer, where the prospective candidate must tackle a SDE 1 Level Java Question, typical for new grad hires. The question, “What are my friends buying?“, requires candidates to build upon two given APIs to produce a list of purchasable item suggestions, based on what their friends bought. This solution is done using Hash Map and Hash Set to keep track of items you’ve bought vs. what your friends bought, while avoiding duplicates. Keep an eye out for the extension question, which utilizes BFS and queue to include larger social circles (friends of friends) as well as the useful advice the interviewer gives to improve! 👉 Get $100 off your first professional mock interview with this link!: 📖 Check out feedback from the FAANG interviewer and the full transcript on 📘 Or view other python interviews: ❗ Disclaimer: All interviews are shared with explicit permission from the interviewer and the interviewee, and all interviews are anonymous. has the sole right to distribute this content. TIMESTAMPS 00:00 Start 06:56 Question Starts: What are my friends buying 36:08 Question Extension: Larger Social Circle 41:00 Feedback 53:45 Question Extension 2: Extend to N level friend circles
Back to Top