← All problemsSign in

Substring Problem

Shaunak was bored in lecture of DSA. As usual , he was writing a string in his book. Raj(as a senior XD) wanted him to learn DSA so he came and saw Shaunak wasting his time in writing strings so he asked Shaunak a question on string. You are allowed to choose a substring and change it's characters. Suppose you want to change character at index $3,5,7$ then $sublength$ is $suble

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