← All problemsSign in

Find Me in Range

You are Given string $s$ and $q$ query. In each query you are given $2$ integer $L$ and $R$ $(L \le R)$ and one lowercase character $c$. you have to tell number of character $c$ in range $[L,R]$. ###Input: - First line of Input contain string of lowercase character $(1 \le$ length of string $\le 10^5)$. - Second line integer $q$ $(1 \le q \le 10^5)$. - Next $q$ line contain $L$ , $R$

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