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 6a34cc3 commit 89dd95eCopy full SHA for 89dd95e
3133-minimum-array-end/3133-minimum-array-end.java
@@ -0,0 +1,8 @@
1
+class Solution {
2
+ public long minEnd(int n, int x) {
3
+ long a = x;
4
+ while (--n > 0)
5
+ a = (a + 1) | x;
6
+ return a;
7
+ }
8
+}
0 commit comments