Available question text
Given a string containing words separated by spaces, split it into tokens where spaces outside single quotes act as delimiters and spaces inside single quotes are preserved as part of the same token.
Example:
Input: "a b abcf' fjehwfiew. 'd xy"
Output: ["a", "b", "abcf' fjehwfiew. 'd", "xy"]
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Split String by Spaces Outside Quotes
Reported Aug 31, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source