cswork / OAOpen practice workspace

SalesforceOA #15

Find Words in String Not in Subsequence (MLE :)

Estimated EasyStatement and editorial — judging is being prepared

Topics (AI-labelled)Two PointersStrings

给两个字符串 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.

Editorial

Loading solution…