![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
将数字转换成字符串
景行cmy
这个作者很懒,什么都没留下…
展开
-
leetcode 902. Numbers At Most N Given Digit Set
We have asortedset of digitsD, a non-empty subset of{'1','2','3','4','5','6','7','8','9'}. (Note that'0'is not included.)Now, we write numbers using these digits, using each digit as many tim...原创 2019-08-28 19:14:25 · 94 阅读 · 0 评论 -
leetcode 1012. 至少有 1 位重复的数字
给定正整数 N,返回小于等于 N 且具有至少 1 位重复数字的正整数。示例 1:输入:20输出:1解释:具有至少 1 位重复数字的正数(<= 20)只有 11 。示例 2:输入:100输出:10解释:具有至少 1 位重复数字的正数(<= 100)有 11,22,33,44,55,66,77,88,99 和 100 。示例 3:输入:1000输出:...原创 2019-09-07 08:34:11 · 342 阅读 · 0 评论 -
leetcode 1088. Confusing Number II
We can rotate digits by 180 degrees to form new digits. When 0, 1, 6, 8, 9 are rotated 180 degrees, they become 0, 1, 9, 8, 6 respectively. When 2, 3, 4, 5 and 7 are rotated 180 degrees, they become i...原创 2019-10-10 14:43:30 · 9830 阅读 · 0 评论