We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10a6a13 commit 875a897Copy full SHA for 875a897
Python/binary-gap.py
@@ -1,4 +1,4 @@
1
-# Time: O(logn)
+# Time: O(logn) = O(1) due to n is 32-bit number
2
# Space: O(1)
3
4
# Given a positive integer N, find and return the longest distance
0 commit comments