There are no spaces in those lists. They're only printed with spaces. For better readability. It's not a bug, it's a feature. I could tell you how to print those lists without spaces, but you really shouldn't.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.