Interview glossary / Technical rounds

Edge cases

Also called: Corner cases · Boundary conditions

Unusual or extreme inputs (empty, single item, duplicates, very large, negative, null) where code often breaks.

Interviewers notice whether you think about edge cases unprompted. Asking about them early clarifies the problem; testing them at the end catches bugs before the interviewer does.

In an interview

List two or three edge cases before you code, and walk through at least one of them after you finish.

Related terms

Interview questions that use it

· All terms ·