String Queries
CodeChefOpen on judge ↗
In this Problem, You have been given a string S of size N containg the lowercase alphabet characters. You need to perform Q queries on strings. There are two type of queries: 1 c : output the number of times character c occur in string, here c is a lowercase alphabet. 2 x c: replace xth character(1-based indexing) in string with charcter c, here c is a lowercase alphabet. Input - First line o
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