⚠⚠One samll request to all
please change variables to solve programs that's safe for 'u'
s=input().strip()
l=[]
for i in s:
if i=='-':
if l:
l.pop()
else:
l.append(i)
if l:
print(*l,sep='')
else:
print(-1)
s=input().strip()
l=[]
for i in s:
if i=='-':
if l:
l.pop()
else:
l.append(i)
if l:
print(*l,sep='')
else:
print(-1)
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments