Helping Dustin
Dustin, is the head of an Intelligence agency. He wants to send a secret message $S$ to his colleague.The message is a single word consisting of only lowercase english letters but he decides to encrypt the message for security reasons. He makes a string $M$ of length $N$, such that after deleting a substring of non-zero length from $M$, the remaining string is $S$. Calculate the number of all suc
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