String Reorder Distance Apart | LeetCode Given a string of lowercase characters, reorder them such ...

Please Visit: http://ift.tt/1ajReyV



String Reorder Distance Apart | LeetCode



Given a string of lowercase characters, reorder them such that the same characters are at least distance d from each other.

Input: { a, b, b }, distance = 2

Output: { b, a, b }

http://ift.tt/ZOGBq4

http://ift.tt/ZOGE53



String Reorder Distance Apart | LeetCode







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1CkXCWH

via LifeLong Community

No comments:

Post a Comment