Barney Gets A Message
CodeChefOpen on judge ↗
Robin and Barney decided to make inter-communication controllers to send text messages to each other in their own code language. Their language has $n$ number of characters. Robin decides to send a text in which frequency of each of the characters is mentioned in the $frequencies$ array. $$ $$ They use controllers with $k$ number of keys and each key supports the number of characters as given in
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