1163. Last Substring in Lexicographical Order
Description
**Input:** s = "abab"
**Output:** "bab"
**Explanation:** The substrings are ["a", "ab", "aba", "abab", "b", "ba", "bab"]. The lexicographically maximum substring is "bab".**Input:** s = "leetcode"
**Output:** "tcode"ac
Last updated