Horje
Check if Numbers Are Ascending in a Sentence Code Example
Check if Numbers Are Ascending in a Sentence
class Solution:
    def areNumbersAscending(self, s: str) -> bool:
        letter = [int(i) for i in s.split() if i.isdigit()] # splitting & checking the if it's digit
        for i in range(len(letter)): 
            for j in range(i + 1, len(letter)):
                if letter[i] >= letter[j]:
                    return False
        return True
Source: leetcode.com




Whatever

Related
istioctl proxy-status Code Example istioctl proxy-status Code Example
done icon Code Example done icon Code Example
DPKG_BUILDFLAGS_EXPORT_ENVVAR Code Example DPKG_BUILDFLAGS_EXPORT_ENVVAR Code Example
Haskell check for list equality Code Example Haskell check for list equality Code Example
godot count amount of one item in array Code Example godot count amount of one item in array Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7