剑指 Offer 49. 丑数bahttps://leetcode.cn/problems/chou-shu-lcof/
| 2023-9-23
0  |  阅读时长 0 分钟
Date
Mar 30, 2023
need_review
need_review
type
剑指 Offer(第 2 版)
undo
undo
难度
中等
我们把只包含质因子 2、3 和 5 的数称作丑数(Ugly Number)。求按从小到大的顺序的第 n 个丑数。
示例:
说明: 
  1. 1 是丑数。
  1. n 不超过1690。
注意:本题与主站 264 题相同:https://leetcode-cn.com/problems/ugly-number-ii/

 
  • Giscus
目录