haoel/leetcode — pull request #23 by jakwings (2014-11-13 23:27:15+00:00)
Title: some improvements

1. check invalid characters
2. check invalid string length
3. reduct redundant code to clarify the logic