Sub-strings with Same Start and End Character
Filed under Samsung
The question
Find the number of sub-strings in a given string where each sub-string has the same character at the beginning and the end.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.