1
# Runtime: 129 ms (Top 6.42%) | Memory: 13.9 MB (Top 92.66%)3
def ambiguousCoordinates(self, s):10
return False if len(s) > 1 and re.match("/^[0]+$/", s) else True12
def _isValidNum(ipart, fpart):15
if (len(ipart) > 1 and ipart[0] == "0") or (fpart and fpart[-1] == "0")23
for i in range(1, len(s) + 1):26
rets.append("%s.%s" % (a, b) if b else "%s" % (a))30
for i in range(1, len(s)):32
if not _isValidSplit(a) or not _isValidSplit(b):34
for c1, c2 in itertools.product(_splitToNums(a), _splitToNums(b)):35
ans.append("(%s, %s)" % (c1, c2))