An ugly number is defined as a positive integer that is divisible by a, b, or c.
Given four integers n, a, b, and c, return the nth ugly number.
Constraints:
n, a, b, c
a $ imes$ b $ imes$ c
The result is guaranteed to be in the range
An ugly number is defined as a positive integer that is divisible by a, b, or c.
Given four integers n, a, b, and c, return the nth ugly number.
Constraints:
n, a, b, c
a $ imes$ b $ imes$ c
The result is guaranteed to be in the range