blakeembrey / code-problems

Common code and interview problems solved in multiple languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[combine-two-strings] Length of string is not checked

0b10011 opened this issue · comments

combineTwoStrings("a", "b", "a") returns true instead of false. Only ba or ab should be valid for str3.

@bfrohs Realised this could be done much cleaner and have reimplemented it now.