sp-arrays-and-searching
https://practice.geeksforgeeks.org/tracks/sp-arrays-and-searching/?batchId=152
Problems
Minimum indexed character 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 Value Partially Solved on: Monday, 6th April 2020
Sum of two large numbers Solved on: Sunday, 5th April 2020
Remove common characters and concatenate Solved on: Sunday, 5th April 2020
Find the fine Solved on: Sunday, 5th April 2020
Count distinct elements in every window Partially Solved on: Sunday, 5th April 2020
Sort in specific order Solved on: Saturday, 4th April 2020
Find the closest number Solved on: Saturday, 4th April 2020
Print an array in Pendulum Arrangement Solved on: Saturday, 4th April 2020
Reverse an Array Solved on: Thursday, 2 April 2020
Reverse array in group Solved on: Thursday, 2 April 2020
Kth smallest element Solved on: Thursday, 2 April 2020
Leaders in an array Solved on: Thursday, 1 April 2020
Rotate Array Solved on: Thursday, 31st March 2020
Immediate Smaller Element Solved on: Thursday, 30th March 2020
Last updated
Was this helpful?