A no-zero integer is a positive integer whose decimal representation contains no digit 0.
Given an integer n, count the number of ordered pairs (a, b) such that:
a and b are no-zero integers, and
a + b = n.
Return the count as an integer.
Input: n = 5
Output: 4
Explanation:
Valid ordered pairs: (1,4), (2,3), (3,2), (4,1).
Input: n = 12
Output: 9
Explanation:
Invalid pairs involve a 10. Valid ordered pairs: (1,11), (3,9), (4,8), (5,7), (6,6), (7,5), (8,4), (9,3), (11,1) → 9 total.
Accepted:
Submission: