Skip to content

Commit 1a80387

Browse files
committed
Update super-ugly-number.py
1 parent eae659d commit 1a80387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/super-ugly-number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def nthSuperUglyNumber(self, n, primes):
6363

6464
return uglies[-1]
6565

66-
# Time: O(n * k)
66+
# Time: O(n * logk) ~ O(n * klogk)
6767
# Space: O(k^2)
68-
# TLE, but it passess and performs very well in C++.
68+
# TLE, but it passess and performs well in C++.
6969
class Solution3(object):
7070
def nthSuperUglyNumber(self, n, primes):
7171
"""

0 commit comments

Comments
 (0)