donnemartin / interactive-coding-challenges

120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.
Other
29.59k stars 4.46k forks source link

Fix solution to find additional char in first string #287

Closed suganya-sk closed 4 years ago

suganya-sk commented 4 years ago

In the challenge arrays_and_strings / str_diff, the solution provided does not work when the additional character is in the first string. This commit also adds testcases for this scenario.

suganya-sk commented 4 years ago

PR#286 does the same.