New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Perplexity
Coding Question
AI Insights
Quick Summary
Identify the earliest starting position of any stop word within a target string.
Extract and return the substring that precedes that specific position.
Handle edge cases such as missing matches, leading matches, and multiple overlapping candidates.
What This Tests
Fundamental string searching and pattern matching
Index tracking and state comparison across multiple inputs
Edge case handling in sequence processing
Understanding time complexity tradeoffs between naive and optimized approaches
Common Patterns
String Searching
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected