Company: Barclays
Difficulty: medium
Count Non-Common Elements Programming Language: C++14 (GCC 5.5.0) Note: You can use cout to debug your code. The cout may not work in case of syntax/runtime error. You are given two lists of different lengths of positive integers. Write an algorithm to count the number of elements that are not common to each list. Input Format The first line of the input consists of an integer - listInput1_size , representing the number of elements in the first list (N). The second line consists of N space-separated integers representing the first list of positive integers. The third line consists of an integer - listInput2_size , representing the number of elements in the second list (M). The last line consists of M space-separated integers representing the second list of positive integers. Output Format Print a positive integer representing the count of elements that are not common to both the lists of integers. Examples Input: 11 1 2 3 4 5 5 7 6 9 10 10 11 12 13 4 5 6 7 18 19 20 Output: 12 Explanati