Problem Solving
Start with: Reading the Problem
Intermediate · Unit 1: Read before you code
0 of 27 lessons0%
This course
0 of 27 lessons- Units
- 5
- Lessons
- 27
- Hours
- 7
Units
5 units01Read before you code
6 lessons- Reading the ProblemRead a coding question twice, strip the story, and restate exactly what it asks in one plain sentence.Start here
- Inputs, Outputs, and ExamplesRead the shape of the input and output for clues, build your own small and weird examples, and draw them.
- Constraints Are HintsTurn the constraints section into a time budget, then use value ranges and promises to rule algorithms in and out.
- Clues in the WordingSpot the trigger phrases that point to a pattern, know why each one works, and avoid the phrases that mislead.
- Edge Cases from ConstraintsRead each constraint line as a list of edge cases, and run a standard checklist before you call a solution done.
- Clarifying QuestionsAsk the interviewer the few questions that actually change your solution, and know what each answer changes.