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 1
Easy, crushed it (helps that the previous problem was Reorganize string)!
review