Skip to content

Conversation

miketorii
Copy link

When just white space " " is in as string, it makes error in if statement. When the length of string is checked, the error is not occurred. Just added i < len(str) in if and elif line. Codes might not be maintained but your codes are helpful for studying leetcode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant