โ† Amazon questions

Print all non-repeating words out of two given sentences

Filed under Amazon

Given two sentences, identify and return a list of words that appear in exactly one of the two sentences (i.e., the symmetric difference of the word sets).

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 Amazon questions

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