Tag: LeetCode: 263 Ugly Number
-
LeetCode: 263 Ugly Number
•
An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given an integer n, return true if n is an ugly number. Example Input: n = 6 Output: true Explanation: 6 = 2 × 3 Input: n = 8 Output: true Explanation: 8…