1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/计算各个位数不同的数字个数 [count-numbers-with-unique-digits].html
2022-03-29 12:43:11 +08:00

9 lines
381 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>给定一个<strong>非负</strong>整数 n计算各位数字都不同的数字 x 的个数,其中 0 &le; x &lt; 10<sup>n&nbsp;</sup></p>
<p><strong>示例:</strong></p>
<pre><strong>输入: </strong>2
<strong>输出: </strong>91
<strong>解释: </strong>答案应为除去 <code>11,22,33,44,55,66,77,88,99 </code>外,在 [0,100) 区间内的所有数字。
</pre>