Search
⌘K

Leetcode 2042. Check if Numbers Are Ascending in a Sentence

Extract the numeric tokens from the space-separated sentence and check whether their numeric values form a strictly increasing sequence from left to right; return true if they do, otherwise false.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.