Hi, Can you please clarify what’s the extra space used for? What is the purpose of having replace(" “,”")?
Course: https://www.educative.io/courses/data-structures-algorithms-in-python
Lesson: https://www.educative.io/courses/data-structures-algorithms-in-python/g7ZJxAzBPPG