Yahoo Interview Question
179 Interview Reviews |
Back to all Yahoo Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Yahoo:
Design patterns that would be used in a card game. Not objects and classes but design patterns.
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (7)
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
Helpful Answer?
Yes |
No
Inappropriate?
If you don't know design patterns, simply say so and move on to the next question. That's far better than trying to fake your way through it.
Helpful Answer?
Yes |
No
Inappropriate?
Research and OOD are not mutually exclusive but maybe design patterns and research are unless your research is in Software Engineering.
My point is that, in most interviews objects, classes, hierarchy are what they are looking for, not actual design patterns.
But I agree with you, if you can move on, great but I posted this because I wanted to tell the people interviewing there to brush up on patterns in addition to OOD because my interviewer told me that she/he expected me to say something about design patterns not just the classes/objects that I told her/him.
Helpful Answer?
Yes |
No
Inappropriate?
Strategy pattern to separate the card-playing rules from the card itself.
Factory pattern to instantiate different types of games.
Decorator pattern to apply different combination of rules to the cards.
Singleton pattern for the top-level game manager.
I wouldn't say these are actually the good choice for the implementation , but since you want to hear some pattern names only, there you go...
Helpful Answer?
Yes |
No
Inappropriate?
Members can
answer or comment on this question
–
Join Now (It's Free) or
Sign In
0 of 0 people found this helpful
by Interview Candidate: