← 返回 amazon 的题目列表Lexicographically Smallest Special String
类型:online_judge
Given a string s, return the lexicographically smallest special string that is greater than s. A special string is defined as having no two adjacent characters that are the same.
Example
Input: "abbd" Output: "abca"
Input: "abccdf" Output: "abcdab"
Example
Input
abbd