← All problemsSign in

Replace and Substring Queries

CodeChefRating 3001Open on judge ↗

Problem Statement Bored of reading statements and problem related with Cyborg, Geno and his friends? So am I. The problem statement goes as follows. You are given 2 string, A and B. You need to support 3 type of operations on these strings. - 1 x y: Change the xth character in the string A to y. - 2 x y: Change the xth character in the string B to y. - 3 l r: Report the number of substrings 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start