Update
This commit is contained in:
@@ -352,6 +352,7 @@ class Solution(object):
|
||||
ans = []
|
||||
path = []
|
||||
def backtrack(path, startIndex):
|
||||
if len(s) > 12: return []
|
||||
if len(path) == 4:
|
||||
if startIndex == len(s):
|
||||
ans.append(".".join(path[:]))
|
||||
@@ -367,7 +368,7 @@ class Solution(object):
|
||||
path.pop()
|
||||
|
||||
backtrack([], 0)
|
||||
return ans```
|
||||
return ans
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user