Class Solution
java.lang.Object
g1101_1200.s1163_last_substring_in_lexicographical_order.Solution
1163 - Last Substring in Lexicographical Order\.
Hard
Given a string `s`, return _the last substring of_ `s` _in lexicographical order_.
**Example 1:**
**Input:** s = "abab"
**Output:** "bab"
**Explanation:** The substrings are ["a", "ab", "aba", "abab", "b", "ba", "bab"]. The lexicographically maximum substring is "bab".
**Example 2:**
**Input:** s = "leetcode"
**Output:** "tcode"
**Constraints:**
*
1 <= s.length <= 4 * 105
* `s` contains only lowercase English letters.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Solution
public Solution()
-
-
Method Details
-
lastSubstring
-