← All problemsSign in

Rashed and his Kth Letter

There is always a feud between $KSK$ $Vamsi$ and $Rashed$ about who’s intelligent. In order to test $KSK$, $Rashed$ gives him a question. At first he provides $KSK$ with a string let us say $A$ – “a1a2a3……..an“. Now he asked $KSK$ to find the kth character of the string $B$ where $B$ is formed by concatenating all sub-strings with prefixes as a1,a2,a3…….,an in given sequential order as in string $

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