For this Question: you have given two integer arrays A and B of length N sorted in non-decreasing order. Calculate the minimum possible difference between elements of A and B.
Solve this problem in O(N) complexity.first- line contains a single integer N
second and third lines contain N space- separated integer A[i] and B[i].Print the minimum absolute difference between two elements from A and B.Sample Input:
6
12 15 16 19 21 29
1 2 3 58 61 65

Sample Output:
9

Explanation : minimum absolute difference can be found between first element of first array and third element of second array., I have written this Solution Code: N = int(input())
l1 = list(map(int, input().split()))
l2 = list(map(int, input().split()))
my_list = []
for i in range(N):
    for j in range(len(l2)):
        a = abs(l1[i] - l2[j])
        my_list.append(a)

print(min(my_list)), In this Programming Language: Python, Now tell me if this Code is compilable or not?