haoel / leetcode

LeetCode Problems' Solutions
17.58k stars 4.91k forks source link

A unnecessary and unreasonable "if" statement. #11

Closed ghost closed 9 years ago

ghost commented 9 years ago

https://github.com/haoel/leetcode/blob/ad62b9d82e8d72a3923881840b23532216c12982/src/countAndSay/countAndSay.cpp#L55

ghost commented 9 years ago

Oh, I thought the vector is not empty...