python2: list==[]
instead of
not list(python3)
core code:
j =0
for i in pushV:
stack.append(i)
while stack and stack[-1] == popV[j]:
stack.pop()
j +=1
python2: list==[]
instead of
not list(python3)
core code:
j =0
for i in pushV:
stack.append(i)
while stack and stack[-1] == popV[j]:
stack.pop()
j +=1