Skip to content

Commit 07a973e

Browse files
author
Yi Gu
committed
[Math] fix time complexity of Power of Two
1 parent cb80ec0 commit 07a973e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Math/PowerTwo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Question Link: https://leetcode.com/problems/power-of-two/
33
* Primary idea: Use and to solve the problem
4-
* Time Complexity: O(n), Space Complexity: O(1)
4+
* Time Complexity: O(1), Space Complexity: O(1)
55
*
66
*/
77

0 commit comments

Comments
 (0)