sp-arrays-and-searching

https://practice.geeksforgeeks.org/tracks/sp-arrays-and-searching/?batchId=152

Problems

Minimum indexed characterarrow-up-right Solved on Monday: 13 April 2020

t=int(input())
for i in range(t):
    s1=list(input())
    s2=list(input())
    d=0
    m=int(len(s1))
    for i in range( len(s1)):
        if s1[i] in s2:
            if (i<m):
                m=i
                ans=s1[i]
                d=1
    if d==0:
        print ("$")
    else:
        print (ans)

Boolean String Valuearrow-up-right Partially Solved on: Monday, 6th April 2020

Sum of two large numbersarrow-up-right Solved on: Sunday, 5th April 2020

Remove common characters and concatenatearrow-up-right Solved on: Sunday, 5th April 2020

Find the finearrow-up-right Solved on: Sunday, 5th April 2020

Count distinct elements in every windowarrow-up-right Partially Solved on: Sunday, 5th April 2020

Sort in specific orderarrow-up-right Solved on: Saturday, 4th April 2020

Find the closest numberarrow-up-right Solved on: Saturday, 4th April 2020

Print an array in Pendulum Arrangementarrow-up-right Solved on: Saturday, 4th April 2020

Reverse an Arrayarrow-up-right Solved on: Thursday, 2 April 2020

Reverse array in grouparrow-up-right Solved on: Thursday, 2 April 2020

Kth smallest elementarrow-up-right Solved on: Thursday, 2 April 2020

Leaders in an arrayarrow-up-right Solved on: Thursday, 1 April 2020

Rotate Arrayarrow-up-right Solved on: Thursday, 31st March 2020

Immediate Smaller Elementarrow-up-right Solved on: Thursday, 30th March 2020

Last updated