← All problemsSign in

2788. Split Strings by Separator

LeetCodeArrayStringOpen on judge ↗

Given an array of strings words and a character separator, split each string in words by separator. Return an array of strings containing the new strings formed after the splits, excluding empty strings. Notes - separator is used to determine where the split should occur, but it is not included as part of the resulting strings. - A split may result in more than two strings. - The resulting st

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start