LeetCode – Interview Checklist (Google Docs)
0. Before Code – Pause Intentionally
• Read the question slowly
• Restate the problem in your own words
• Ask clarifying questions (empty input, negatives, constraints, mutation allowed)
1. Naive Solution
• Describe a simple solution
• State time and space complexity
• Explain why it is not optimal
2. Identify the Pattern
• Name the pattern (hash map, two pointers, sliding window, stack, recursion, BFS/DFS, binary
search)
• Explain why this pattern fits
3. Plan Before Coding
• Write 3–6 clear logical steps (pseudo code)
• Ensure the flow is clear before writing code
4. Write Code (Google Docs Style)
• Use clear variable names
• Keep lines short and readable
• Avoid IDE shortcuts
• Explain key parts while writing
5. Manual Test
• Run through a small example
• Check edge cases
• Look for off-by-one, bounds, empty input issues
6. Complexity & Trade-offs
• State time complexity
• State space complexity
• Explain trade-offs (time vs space, simplicity vs efficiency)
7. Bonus – Variation
• Consider one variation (stream input, no hash map, larger constraints)
• Reason about changes even if not fully solved
Self Check After the Question
• Can explain the solution without code
• Can re-write the solution from memory
• Did not freeze during solving