โ† BuyHatke questions

Substrings with character c appearing once

Filed under BuyHatke

The question

Given a character 'c' and a string 's', find the number of substrings where 'c' appears exactly once.

No write-up yet. Related questions below have one.

Related BuyHatke questions

Collected from public candidate posts and coding forums. Updated Nov 2026.