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 5c7099d commit bc88107Copy full SHA for bc88107
Bit-Manipulation/MinMaxElement.js
@@ -10,8 +10,8 @@
10
* const maxi = max(5,3) // Returns max number i.e. 5
11
* const mini = min(5,3); // Returns min number i.e. 3
12
*/
13
-const max = (x, y) => x ^ ((x ^ y) & -(x < y ? 1 : 0));
+const max = (x, y) => x ^ ((x ^ y) & -(x < y ? 1 : 0))
14
15
-const min = (x, y) => y ^ ((x ^ y) & -(x < y ? 1 : 0));
+const min = (x, y) => y ^ ((x ^ y) & -(x < y ? 1 : 0))
16
17
-export { min, max };
+export { min, max }
0 commit comments