Scary name, simple concept. The symmetric difference of two sets is the items of each set not present in the other set. Once again, however, the fact that a problem is simple has no bearing on how often we may or may not see it in real world situations.

This, in fact, was my last assignment at my previous position: I needed to report which records could be found in Database A that were not in Database B and vice versa. Those of you who have done the other challenges in this series may recognize a marked similarity to the very first challenge, but I'll be sure to add one wrinkle.

The challenge

Given two lists of values, determine which values are present in the first list but not in the second and vice versa. The output for this program will be the unique values from each list. As such, it is important to remember which list each item was on.

Your input data will be sorted.

Input data

[Here] (https://gist.github.com/archer884/d803df85af703fee7742a6fa9f5134de) are both your files. It's one gist, but there are two files. Be sure to scroll down.

These input files are sorted in ascending order.

Results!

As usual, the answer is base64-encoded. Good luck!

TGVmdDogQWxtYWd1ZXIsIENlZHJpYw0KTGVmdDogQm91cmtlLCBHZXJ0aWUNCkxlZnQ6IENvcHBpbmdlciwgQWRyaWENCkxlZnQ6IEN1biwgTGF0b3lhDQpMZWZ0OiBHYWRkeSwgTWljaGFsDQpMZWZ0OiBIZXJvbGQsIEFudG9uZQ0KTGVmdDogSG9nZ2F0dCwgRWxpYXMNCkxlZnQ6IEpvaG4sIEVsaW4NCkxlZnQ6IEtpcmtzZXksIEJyYW5kZW4NCkxlZnQ6IExldHNpbmdlciwgTXVpDQpMZWZ0OiBMZXZlaWxsZSwgTW9sbHkNCkxlZnQ6IFNjaGV1ZXJtYW4sIFJvc2luYQ0KTGVmdDogU3Rvd2UsIFdhaQ0KTGVmdDogWmFjaGVyeSwgR2VyYWx5bg0KUmlnaHQ6ICJDYWxsYWdoYW4sIFBpYSINClJpZ2h0OiAiRGV3ZXksIE5lbGxpZSINClJpZ2h0OiAiR2FsbGlvbiwgRnVtaWtvIg0KUmlnaHQ6ICJHaXJhcmRpbiwgU29pbGEiDQpSaWdodDogIkphY2ttYW4sIFNoYXJsZW5lIg0KUmlnaHQ6ICJLbmlnaHRlbiwgQmFyYWJhcmEiDQpSaWdodDogIkxpemFvbGEsIEFtbWllIg0KUmlnaHQ6ICJNYXJrZXJ0LCBQYXJpcyINClJpZ2h0OiAiTmljb2xzLCBOaWNreSINClJpZ2h0OiAiUGVlZCwgQWlkYSINClJpZ2h0OiAiUG90dGVyLCBCZWxpYSINClJpZ2h0OiAiU2hlcGFyZCwgTWFyaW5hIg0KUmlnaHQ6ICJTdWJlciwgUGV0ZSINClJpZ2h0OiAiVXBzaHVyLCBUYXdhbm5hIg==