Find M S Dhoni (Easy Version)
CodeChefOpen on judge ↗
A crazy fan of M S Dhoni wants to make huge banner in an upcoming CSK Match . He wants to make a banner having many strings as $MSDHONI$ written on it. So you have to help him find maximum number of $MSDHONI$ string from a given string $S$. Note - In this easy version you can rearrange the string $S$. ### Input - First line will contain $T$, number of testcases. - Each testcase contains of a sin
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