未验证 提交 3a99771b 编写于 作者: K Keqi Huang 提交者: GitHub

Update 1015._Numbers_With_1_Repeated_Digit.md

上级 1c3b9cbc
......@@ -41,8 +41,11 @@ Note:
> 思路 1
******- 时间复杂度: O(lgN)******- 空间复杂度: O(lgN)******
算有重复的,我们可以先算出没有重复的,然后返回`(总数-没有重复)`即可
比赛中我想到了可以这样做,但是实现的时候TLE了,赛后看了[[Java/Python] Count the Number Without Repeated Digit](https://leetcode.com/problems/numbers-with-1-repeated-digit/discuss/256725/JavaPython-Count-the-Number-Without-Repeated-Digit)
那么没有重复怎么算呢?
对于一个N位digit的数字,小于等于它的没有重复的有以下两种:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册