← All problemsSign in

Simple Editor

CodeChefRating 2504Open on judge ↗

In this problem you will have to implement a simple editor. The editor maintains the content of a string S and have two following functions: "+ i x": insert a string x into the current string S after the i'th character of the S (we use 1-indexing in this problem). When i equals to 0 it mean we add x at the beginning of S. "? i len": Print the sub-string of length len starting at position i'th 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