Ideal Strings
CodeChefOpen on judge ↗
While having the dinner WonderKing and professor WonderMath was discussing about Ideal numbers – a great topic in mathematics, WonderQueen who was not that much interested in mathematics , was listening to the discussions and was thinking only a number can be ideal, why not strings?. She asked it from her mother who is a expert in language, she replied Yes and gave an explanation to Ideal 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.
Sign in to chat with the tutor and save your progress.
Sign in to start