Skip to content

The term symmetric difference indicates those values that exist in either M or N but do not exist in both.

Notifications You must be signed in to change notification settings

msoni1369/SymmetricDifference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SymmetricDifference

The term symmetric difference indicates those values that exist in either M or N but do not exist in both.

Task Given sets of integers, and , print their symmetric difference in ascending order. The term symmetric difference indicates those values that exist in either or but do not exist in both.

Input Format

The first line of input contains an integer, . The second line contains space-separated integers. The third line contains an integer, . The fourth line contains space-separated integers.

Output Format

Output the symmetric difference integers in ascending order, one per line.

Sample Input

4 2 4 5 9 4 2 4 11 12 Sample Output

5 9 11 12

About

The term symmetric difference indicates those values that exist in either M or N but do not exist in both.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published