Determine Minimum Characters to Append
Problem Overview
- Determine the minimum characters to append to resultWord so it becomes a subsequence of searchWord.
- Input: two strings (searchWord, resultWord); Output: a non-negative integer count.
- Domain: string processing and text search; focuses on subsequence matching.
- From Amazon interviews: a common coding interview problem and interview question assessing string manipulation skills.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
