263. Ugly Number
LeetCode 263. Ugly Number
Description
Input: n = 6
Output: true
Explanation: 6 = 2 × 3Input: n = 8
Output: true
Explanation: 8 = 2 × 2 × 2Input: n = 14
Output: false
Explanation: 14 is not ugly since it includes another prime factor 7.Tags
Solution
Complexity
Code
Last updated