infytq final round coding questions solutions code example
Example: infytq final round coding questions
N=int(input())people=[]house=[]#to read data of people and house arraysfor i in range(N): people.append(int(input()))for i in range(N): house.append(int(input()))count=0for i in range(N): for j in range(N): if(people[i]<house[j]): count+=1 house[j]=-1 break print(N-count)