← All problems
Medium · Heap / Priority Queue

Longest Happy String

Build the longest string from limited a, b and c counts without three consecutive equal letters.

Full problem and submission ↗
main.js

Console

Ready