Skip to content

Commit bc88107

Browse files
Update MinMaxElement.js
1 parent 5c7099d commit bc88107

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Bit-Manipulation/MinMaxElement.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* const maxi = max(5,3) // Returns max number i.e. 5
1111
* const mini = min(5,3); // Returns min number i.e. 3
1212
*/
13-
const max = (x, y) => x ^ ((x ^ y) & -(x < y ? 1 : 0));
13+
const max = (x, y) => x ^ ((x ^ y) & -(x < y ? 1 : 0))
1414

15-
const min = (x, y) => y ^ ((x ^ y) & -(x < y ? 1 : 0));
15+
const min = (x, y) => y ^ ((x ^ y) & -(x < y ? 1 : 0))
1616

17-
export { min, max };
17+
export { min, max }

0 commit comments

Comments
 (0)