fixed logic
This commit is contained in:
parent
59213e8145
commit
2e34f1b6c5
@ -15,9 +15,9 @@ def brackets(text):
|
||||
if slash == 2:
|
||||
break
|
||||
continue
|
||||
if i == "{":
|
||||
elif i == "{":
|
||||
res += 1
|
||||
if i == "}":
|
||||
elif i == "}":
|
||||
res -= 1
|
||||
slash = 0
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user