← Deutsche Bank questions
CodingReported in a candidate post, Aug 2019

Count substrings with identical terminal characters in a range

Filed under Deutsche Bank

Given a string and multiple 1-indexed range queries [L, R], count how many substrings entirely within the range [L, R] have identical starting and ending characters.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Deutsche Bank questions

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