- This event has passed.
6 PM – Coding Olympic Training
January 26, 2022 @ 6:00 pm - 7:00 pm
Homework
Find complementary set of two arrays
- complementary set means a set of all elements that only exist in one array
- Create one file named input.in, each line is one array, each element in one array is comma separated, for example: 2,4,6,3,15,7
- Print the complementary set of two arrays or write the result to a file
For example:
array1 = [1,2,3]
array2 = [2,3,4]
Then the complementary set is [1,4]