没有合适的资源?快使用搜索试试~ 我知道了~
fuxuemingzhu#Leetcode-Solution-All#884. Uncommon Words from Two
需积分: 0 0 下载量 145 浏览量
2022-07-25
14:24:09
上传
评论
收藏 2KB MD 举报
温馨提示
试读
作者: 负雪明烛个人博客: :
资源推荐
资源详情
资源评论
作者: 负雪明烛
id: fuxuemingzhu
个人博客: http://fuxuemingzhu.cn/
---
@[TOC](目录)
题目地址:https://leetcode.com/problems/uncommon-words-from-two-sentences/description/
## 题目描述
We are given two sentences ``A`` and ``B``. (A sentence is a string of space separated words. Each word consists only of lowercase letters.)
A word is uncommon if it appears exactly once in one of the sentences, and does not appear in the other sentence.
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"]
Note:
- 0
点击阅读更多
资源评论
代码深渊漫步者
- 粉丝: 14
- 资源: 320
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功