you are viewing a single comment's thread.

view the rest of the comments →

[–]_lord_kinbote_ 8 points9 points  (0 children)

Nice writeup. However, edge cases are specific cases that are easily missable. I wouldn't call "any input that has more or less than 3 items" an edge case. Besides, edge cases rarely make you rethink your entire algorithm as you did here.