I don't understand why it is such a problem to write a "+" instead of linking a wikipedia article.
Inconsistent indentation in the initial solution (including tabs which don't work well in the editor).
Missing edge case tests with expectedResult == 0.
expectedResult == 0
btw: talking about complexity is worthless if you don't enforce the requirement.
This comment is hidden because it contains spoiler information about the solution