Write a function that returns a sorted vector with the symmetric difference of two sorted vectors and . The result must have the elements in that are not in and the elements in that are not in , without repetitions. For example, the symmetric difference of a vector with and a vector with is a vector with .
vector<double> symmetric_difference(const vector<double>& v1, const vector<double>& v2);
You only need to submit the required procedure; your main program will be ignored.
Author: Gabriel Valiente
Generation: 2026-01-25T14:28:50.813Z
© Jutge.org, 2006–2026.
https://jutge.org