You are given a non-negative integer n. Your task is to determine whether its digits, read from left to right, are strictly increasing.
The digits must satisfy the condition that each digit is greater than the digit immediately before it. If any digit is equal to or smaller than the previous digit, return No. Otherwise, return Yes.
Input: n = 1259
Output: Yes
Explanation: Each digit is greater than the digit before it: 1 < 2 < 5 < 9.
Input: n = 1231
Output: No
Explanation: The final digit, 1, is smaller than the preceding digit, 3, so the digits are not strictly increasing.
Input: n = 7
Output: Yes
Explanation: A single-digit number satisfies the condition because there are no adjacent digits to compare.
Sign in to write, run, and submit your solution against the full test suite.