Test Cases(或者说Corner Cases),如何想的更全面一些?

如何想的全面?练的多了就会全面,背诵记的多了就会自然而然想起来。
所以不妨现在总结一下:

duplicate or unique?
even or odd?
case sensitive?
do we need to deal with the white space(front or end)
int: do we need to worry about int stack overflow? (如果需要 我们可以用long)
do we need to worry about 0 or negative?

你可能感兴趣的:(LeetCode)