String Composition
CodeChefOpen on judge ↗
Chef has a very important String written but due to an accident the String gets shredded into its composing letters and divided into two parts s1 and s2. Thankfully, the order of the letters has not changed, and the Chef has a few guesses as to what the string can be. Help Chef decide if his guess for S can be composed out of s1 and s2 or not. For example, if Chef had string "Greetings" it could
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