Damus
codementor profile picture
codementor
@codementor
Learn: Test your code by hand

When your code is written, don't just say "done". Walk through it with a small example, line by line, and say the values out loud.

Then try the edge cases: an empty input, one item, and all items the same. Most bugs show up in these three.

#tip · TIP-004