All Emails Once
online and store each have a column email. Return an alphabetically sorted list of every email that appears in at least one of the tables, each listed once.
Example 1
online {"email":["a@x","b@x"]}
store {"email":["b@x","c@x"]}
returns ["a@x","b@x","c@x"]
a@x, b@x, c@x.
Constraints
- The tables are small
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.