← Microsoft questions

Compute symmetric difference of two string sets with custom ordering

Filed under Microsoft

Given two sets of strings A and B, compute the symmetric difference (A - B) U (B - A). Output the elements such that elements originating from A appear before elements originating from B, and within…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.