Yet Another String Problem
CodeChefOpen on judge ↗
You are given a string $s$ of length $n$ only consisting of lowercase characters ($a$ - $z$). There are $q$ queries in one of the *two* formats: - $1$ $l$ $r$ $c$: Print count of character $c$ from index $l$ to $r$ of the string (inclusive). - $2$ $i$ $c$: Change the character at index $i$ of $s$ to $c$. ($s[i] = c$). The problem is divided into $2$ subtasks where **Subtask $\#1$ contains querie
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.
Sign in to chat with the tutor and save your progress.
Sign in to start