Link: https://leetcode.com/problems/rearrange-string-k-distance-apart/
Solution:
Topics: heap
Intuition
Pretty much the same problem as Reorganize string, but we pop k
elements off the heap instead of just two for adjacent alterations.
Implementation
review