Amazon Interview Question for Software Engineer / Developers
- 0of 0 votes
AnswersSay you have to design a Online role playing game. People can buy demons and weapns online. There are N demons and M weapons. Each weapon of class W inflicts some damage X on a Demon of class D (ie. decrease health of Demon by X). The question was to design a OOP system to accomodate this - make the program data-driven if possible - i.e to add a new demon/weapon, the user has to make as minimum number of compilations as possible. Used a Singleton for storing the Damage of Demon-Weapon combo. Coded in C++. About loading, said we use DB. He suggested config files - I protested that cannot be done because the file can be tampered - no single source of truth.
- Viswanatha Reddy June 06, 2009| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.