Clean Up Captions
Problem Overview
- For each pair of captions from for_you and following feeds, check if any common substring exists and return YES or NO.
- Input: two equal-length arrays of lowercase strings; Output: an array of YES/NO per index.
- Context: Clean up captions and optimize storage by detecting overlap across feeds and hashtags.
- Company: A TikTok interview question; this coding interview problem focuses on string overlap detection.
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:
