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] Only looks ahead one character

0b10011 opened this issue · comments

combineTwoStrings("aab", "aac","aacaab") should return true, but returns false because the function only looks ahead one character. This could be solved with a recursive function call to do the checks for both strings.