We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b4c1c commit 9ef4948Copy full SHA for 9ef4948
1 file changed
src/stack/decode_string/solution.py
@@ -6,10 +6,10 @@ def decodeString(self, s: str) -> str:
6
for char in s:
7
if char.isdigit():
8
number.append(char)
9
- elif char == '[':
+ elif char == "[":
10
stack.append("".join(number))
11
number = []
12
- elif char == ']':
+ elif char == "]":
13
alphas = []
14
while stack[-1].isalpha():
15
alphas.append(stack.pop())
0 commit comments