NeetCode #689LC-264Medium1-D Dynamic Programming
← Back to All Problems

#689 · #264 · Ugly Number II(丑数 II)

📌 Problem Statement & Constraints

An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5. Given n, return the n-th ugly number. Constraints: 1 <= n <= 1690.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!