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.
this
1 parent fd44d58 commit a2341aeCopy full SHA for a2341ae
src/hackerrank/interview_preparation_kit/dynamic_programming/max_array_sum.js
@@ -7,7 +7,7 @@ const bigIntMax = (...args) =>
7
args.reduce((m, e) => (e > m ? e : m), BigInt(0));
8
9
function maxSubsetSum(arr) {
10
- const arrCopy = arr.map((x) => BigInt(x));
+ const arrCopy = arr.map(BigInt);
11
12
if (arrCopy.length === 0) {
13
return 0;
0 commit comments