← All problemsSign in

ISS and Strings

You are an astronaut living in the International Space Station.You send data to the Houston Space Center regarding some observations you made.However due to communication restrictions you are instructed to reduce the length of the data by using the following algorithm. Suppose you have 2 strings to be sent, Si and Sj, you construct a new string Sk,which is the smallest possible string such that

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