Glossary: Coding Interviews in JavaScript
Edge-case checklist
A list to run through after your main example: empty input, one item, two items, all the same, duplicates, zero or negatives, sorted or reversed, very large.
Glossary: Coding Interviews in JavaScript
A list to run through after your main example: empty input, one item, two items, all the same, duplicates, zero or negatives, sorted or reversed, very large.