cswork / OA打开练习工作台

SalesforceOA #15

Find Words in String Not in Subsequence (MLE :)

估计简单评测数据准备中,可先阅读题面

考点(AI 标注)双指针滑窗字符串

给两个字符串 s 和 t,把 s 按空格切成词,返回那些不是 t 的子序列的单词列表,保持原顺序。

Example 1

Input:

s = "I like cheese"
t = "like"

Output:

["I", "cheese"]

Explanation: These words are in s but not part of t.