Clarify the problem
Goal: Establish input ranges, output format, and the edge cases that matter.
Strong signals
- You ask about empty input, duplicates, ordering guarantees, and value ranges.
- You restate the problem in one sentence and get confirmation.
- You work through the provided example by hand before coding.
Common mistakes
- Starting to type within thirty seconds of hearing the problem.
- Asking questions whose answers do not change your approach.
- Assuming constraints that make the problem trivially easy.
