← All problemsSign in

Counting Frequency

Prashant and Shubham are bosom friends. They create a mini game to kill their time. Both of them have all the characters of alphabet with equal frequencies. They have to make use of them to create as many words as possible. To keep track of their progress, they need help to determine the number of characters they use in each word they make. Help the friends by displaying the frequency of each char

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