Return the Last Lexicographical Substring
Return the Last Lexicographical Substring
Given a string s, return its last lexicographical substring.
Input
- A single line string
sof length in[1, 10^5], only containing lowercase le...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
