Skip to content
nalar

Part 1 · Module 1

Read the problem

Break a problem into clear parts, work the examples by hand, hunt edge cases, then write a plan before the code.

4 lessons · 39 min in total

When to reach for it

Read the problem in five parts
Before writing the first line of code. Ask "what strange inputs do these constraints allow?"
Sentence first, then code
Every time you read a new problem. If the sentence isn't clear, the code won't be either.
Edge case checklist
After you understand the problem, before coding. Write one small test case for each item that can happen.
Plan in plain words
When you don't know where to start. If you can't write the plan, you can't write the code yet either.