← All problemsSign in

MinConcats

Problem description. Alice loves strings a lot. She found that a Sage came to their city of Mumbai. People started saying that sage is fulfilling their wish, if they solve the problem that Sage gives. Alice went to see the sage to find out if he is real or not. Sage asked her a question.How many minimum number of strings P, does she need to make a string (S). He gave her infinite number of 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