Coding | Mcqs | Multiple choice questions | Informative | Computer Science | Engineering | Aptitude | Quants | Verbal

INFEED

Coding challenge infytq

Coding Challenge 

All Solutions in Python Language

Problem 1:

a=int(input())

b=list(map(int,input().split()))

print("dealer",end="")

print(b.index(min(b)))



Problem 2:

a=int(input())

b=input().split()

c=0

for i in  b:

    if(i=='P'):

        c+=1

y=(c/a)*100

if(y<25):

    print("Blacklisted")

elif(y>=25):

    print("Not Blacklisted")


Problem 3:

a=int(input())

b=list(map(int,input().split()))

c=b[:]

c.sort()

if(b==c):

      print("yes")

else:

        print("no")

Problem 4:

a=input()
b=['a','e','i','o','u']
c=[]
for i in a:
    if (i not in b):
        c.append(i)
x=reversed(c)
print(*x,sep="")

Problem 5:
a=list(map(int,input().split()))
b=list(map(int,input().split()))
if(a[0]<=a[1]):
    print(-1)
elif(a[0]\==4 and a[1]==2):
    print(2)
else:
    b.sort()
    print(b[a[1]])

Post a Comment

Previous Post Next Post