donnemartin / interactive-coding-challenges

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

Added a test case for compressing string #199

Closed kevin-george closed 7 years ago

kevin-george commented 7 years ago

Only compress the string if it saves space according to the problem statement. This new test case would check that along with the empty string and None check.

donnemartin commented 7 years ago

@kevin-george thank you!