Community Feedback on my Amazon SDE-2 LLD Round Interview.
Summary
Attended Amazon SDE-2 LLD round interview, designed a multiplayer game system with classes, used singleton pattern, and discussed design improvements. Interviewer acknowledged the solution but pointed out areas for refinement.
Full Experience
Today I have attended the Amazon SDE2 LLD round interview. I was asked to design a game based on 2 players under the requirements I gathered. I started designing classes and the interviewer asked me to write the development ready code. I began doing this and ended up using the singleton design pattern, implementing 3 classes and completing all the requirements.
During the discussion, we came to know there could be 1 more entity. I said it is true if our requirements change, but I think it could have been better even in the current requirements as well. This was an easy one, but due to time constraints, I could not segregate my controller class.
There were few more discussions on design which I convinced and quickly tried to implement, but the interviewer stopped me stating it's ok.
Interview Questions (1)
Multiplayer Game System Design
Design a game based on 2 players under the requirements gathered. Implement a development-ready code structure with classes to handle game entities and interactions.