Solving Uncommon Words from Two Sentences in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Return a list of all uncommon words.

You may return the list in any order.

Example 1:

Input: A = "this apple is sweet", B = "this apple is sour"
Output: ["sweet","sour"]

Example 2:

Input: A = "apple apple", B = "banana"
Output: ["banana"]


  1. 0 <= A.length <= 200
  2. 0 <= B.length <= 200

See the full details of the problem Uncommon Words from Two Sentences at LeetCode

Originally posted at: