when I use list.append() or list.remove()
the list will add a space to every elements except the first one.
nums = [1,2,3]
the result will be [1, 2, 3, 4] but not[1,2,3,4]
How can I avoid space in a list when I use function in python3?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.