#3704
Count No-Zero Pairs That Sum to N
grandmaster · 2295 · lc hard +32 · 14.3% accepted · 53 likes · top 0%
Description
A no-zero integer contains no digit 0 in its decimal form. Given an integer n, count all ordered pairs (a, b) of no-zero integers satisfying a + b = n, and return that count.
Code
1
2
3