Interview Problem Solving Strategy! Flashcards
1
Q
What are the steps to solve a problem?
A
- Repeat the question in your own words
- Check assumptions
- Use real examples
- Brainstorm solutions and their time/space complexity
- Write working code (no pseudo-code please!)
- Test your code, always
2
Q
How do you generate an Idea?
A
Simplify the task
Try a few examples
Think of suitable data structures
Think about related problems that you know(Your Pattern Notebook)