A sentence is a sequence of tokens separated by single spaces, containing no leading or trailing spaces. Each token is either a word consisting of lowercase English letters or a positive integer consisting of digits from
Given a string s representing a sentence, determine whether all the integers in s appear in strictly increasing order from left to right (meaning every integer is strictly greater than the integer preceding it).
Return true if all integers in s are strictly increasing, or false otherwise.
Constraints:
s.length
s consists of lowercase English letters, spaces, and digits from
The number of tokens in s is between
The tokens in s are separated by a single space.
There are at least s.
Each number in s is a positive number less than
s contains no leading or trailing spaces.
A sentence is a sequence of tokens separated by single spaces, containing no leading or trailing spaces. Each token is either a word consisting of lowercase English letters or a positive integer consisting of digits from
Given a string s representing a sentence, determine whether all the integers in s appear in strictly increasing order from left to right (meaning every integer is strictly greater than the integer preceding it).
Return true if all integers in s are strictly increasing, or false otherwise.
Constraints:
s.length
s consists of lowercase English letters, spaces, and digits from
The number of tokens in s is between
The tokens in s are separated by a single space.
There are at least s.
Each number in s is a positive number less than
s contains no leading or trailing spaces.