[LeetCode] Rearrange String k Distance Apart

1 · · Feb. 17, 2022, 10:22 a.m.
Summary
358. Rearrange String k Distance Apart Given a string s and an integer k, rearrange s such that the same characters are at least distance k from each other. If it is not possible to rearrange the string, return an empty string “”. ...