- Notifications
You must be signed in to change notification settings - Fork 2
simplicity
bradendubois edited this page Oct 7, 2021 · 8 revisions
ID: simplicity
Difficulty: 2.9
CPU Time: 1 second
Memory: 1024 MB
For this, build a histogram of all the unique characters in the string; if there are only 1 or 2, output 0 and quit; otherwise, sort all the occurrences in ascending order, and total all but the highest 2, and output that number.