I'm excited to showcase my coding journey on my blogspot. It's a deep dive into a multitude of programming languages, such as C, Java, Python, and beyond. I tackle challenging interview questions with thorough solutions. Come join me in exploring the world of programming!
import platform cacheBegin, cacheEnd = 0, 0 print(cacheBegin) print(cacheEnd) for i in range( -500, 0): if i is int(str(i)): cacheBegin = i break for i in range( cacheBegin, 500 ): if i is not int(str(i)): cacheEnd = i - 1 break print( "Python version: {} implementation: {}".format( platform.python_version(), platform.python_implementation() ) ) print( "This implementation caches integers {} to {}".format( cacheBegin, cacheEnd ) )
p=input("") q=input("") p=list(p.split(" ")) q=list(q.split(" ")) for t in range(0,len(q)-1): c=[0 for i in range(t,len(q))] for i in p: for j in range(len(q)): k=0 while(k): m2=c.index(m1) for i in range(m2,len(c)): if(c[i]==m1): if(ord(q[i])<ord(q[m2])): m2=i else: m2=c.index(m1) q[m2],q[t]=q[t],q[m2] print("".join(q))
Comments
Post a Comment