You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: leetcode/3301-3400/3370.Smallest-Number-With-All-Set-Bits/README.md
+29-12Lines changed: 29 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,45 @@
1
1
# [3370.Smallest Number With All Set Bits][title]
2
2
3
-
> [!WARNING|style:flat]
4
-
> This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-algorithm)
5
-
6
3
## Description
4
+
You are given a positive number `n`.
5
+
6
+
Return the **smallest** number `x`**greater than** or **equal to**`n`, such that the binary representation of `x` contains only set bits
0 commit comments