PYTHON:
rb=input().strip()[::-1]
r=[rb[i:j]for i in range(len(rb)) for j in range(i+1,len(rb)+1)]
k=sorted(set(r))
print(k.index(rb)+1)
PYTHON:
rb=input().strip()[::-1]
r=[rb[i:j]for i in range(len(rb)) for j in range(i+1,len(rb)+1)]
k=sorted(set(r))
print(k.index(rb)+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