Greedy Algorithms - Reorganize String (No Two Adjacent Same)
Suppose the problem is modified so that characters can be reused unlimited times (infinite supply), and you want to generate a string of length
n with no two adjacent characters the same. Which modification to the max heap approach is necessary to handle this variant correctly?