naumcs / uglynumbers Goto Github PK
View Code? Open in Web Editor NEWThe algorithms find the Nth ugly number in dynamic and brute force ways. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Note that 1 is typically treated as an ugly number.