Rearrange characters in a string such that no two adjacent are same

1 min read

https://practice.geeksforgeeks.org/problems/rearrange-characters/0

Find the smallest window that contains all characters of string itself
Minimum characters to be added at front to make string palindrome