1. Given two arrays of integers, write a program to check if a pair of values (one value from each array) exists such that swapping the elements of the pair will make the sum of two arrays equal.
Input Format
First line contains two integers N and M. Second line contains N+M integers for the first and second array respectively.
Output Format
Return a boolean.
Constraints
1 <= N <= 104 1 <= M <= 104 0 <= elements <= 104
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
6 4 4 1 2 1 1 2 3 6 3 3
Output
true